Ack.

On 12/07/2010 10:28 PM, Alon Levy wrote:
---
  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 465bb2f..ebca0d1 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -102,7 +102,7 @@ static ImageType image_types[] = {
  };
  #endif

-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;
@@ -1091,16 +1091,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;
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to