diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-06 18:00:29 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-08 17:12:48 +0200 |
commit | a19080980d55b8006d6322b29684717c928d9d1a (patch) | |
tree | bac746ed6ef612e8f7d2167e1786412149da1f0b /client/windows | |
parent | 78f81ec61cbaef8a8a49ef328975409a9a0d70d0 (diff) | |
download | spice-a19080980d55b8006d6322b29684717c928d9d1a.tar.gz spice-a19080980d55b8006d6322b29684717c928d9d1a.tar.xz spice-a19080980d55b8006d6322b29684717c928d9d1a.zip |
mingw32 build: eol fixes
Diffstat (limited to 'client/windows')
-rw-r--r-- | client/windows/platform.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp index 3eb2cf67..b6f1918e 100644 --- a/client/windows/platform.cpp +++ b/client/windows/platform.cpp @@ -92,7 +92,7 @@ static ImageType image_types[] = { {VD_AGENT_CLIPBOARD_IMAGE_BMP, CXIMAGE_FORMAT_BMP}, }; -static std::set<uint32_t> grab_types;
+static std::set<uint32_t> grab_types; static const unsigned long MODAL_LOOP_TIMER_ID = 1; static const int MODAL_LOOP_DEFAULT_TIMEOUT = 100; @@ -1076,16 +1076,16 @@ bool Platform::on_clipboard_request(uint32_t type) case VD_AGENT_CLIPBOARD_IMAGE_BMP: { DWORD cximage_format = get_cximage_format(type); ASSERT(cximage_format); - CxImage image;
- if (!image.CreateFromHANDLE(clip_data)) {
- LOG_INFO("Image create from handle failed");
- break;
- }
- if (!image.Encode(new_data, new_size, cximage_format)) {
- LOG_INFO("Image encode to type %u failed", type);
- break;
- }
- LOG_INFO("Image encoded to %u bytes", new_size);
+ CxImage image; + if (!image.CreateFromHANDLE(clip_data)) { + LOG_INFO("Image create from handle failed"); + break; + } + if (!image.Encode(new_data, new_size, cximage_format)) { + LOG_INFO("Image encode to type %u failed", type); + break; + } + LOG_INFO("Image encoded to %u bytes", new_size); clipboard_listener->on_clipboard_notify(type, new_data, new_size); image.FreeMemory(new_data); ret = true; |