Added the implementation of cursor handling in the scaling mode.
Now cursor correct imaging in the scaling mode.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2238 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h
index a6bc5df..94f361d 100644
--- a/win/vncviewer/DesktopWindow.h
+++ b/win/vncviewer/DesktopWindow.h
@@ -96,6 +96,7 @@
       // - Set the cursor to render when the pointer is within the desktop buffer
       void setCursor(int w, int h, const Point& hotspot, void* data, void* mask);
       void showCursor() { showLocalCursor(); }
+      void convertCursorToBuffer();
 
       // - Set the window fullscreen / determine whether it is fullscreen
       void setFullscreen(bool fs);
@@ -239,9 +240,15 @@
       bool cursorInBuffer;    // Is cursor position within server buffer? (ONLY for LocalCursor)
       bool cursorVisible;     // Is cursor currently rendered?
       bool cursorAvailable;   // Is cursor available for rendering?
+      bool internalSetCursor;
       Point cursorPos;
       ManagedPixelBuffer cursorBacking;
       Rect cursorBackingRect;
+      U8 *cursorImage;
+      U8 *cursorMask;
+      int cursorWidth;
+      int cursorHeight;
+      Point cursorHotspot;
 
       // ToolBar handling
       ViewerToolBar tb;