2006-03-07 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2006 22:26:55 +0000 (22:26 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2006 22:26:55 +0000 (22:26 +0000)
        Reviewed by hyatt.

        Fix cursor support on win32.

        * platform/win/WidgetWin.cpp:
        (WebCore::Widget::setCursor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13199 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/WidgetWin.cpp

index 8360a95..93e496e 100644 (file)
@@ -2,6 +2,15 @@
 
         Reviewed by hyatt.
 
+        Fix cursor support on win32.
+
+        * platform/win/WidgetWin.cpp:
+        (WebCore::Widget::setCursor):
+
+2006-03-07  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by hyatt.
+
         Fix basic text support.
 
         * WebCore.vcproj/WebCore/WebCore.vcproj:
index 4a65ca3..9b9863f 100644 (file)
@@ -125,7 +125,11 @@ void Widget::setFont(const Font& font)
 
 void Widget::setCursor(const Cursor& cursor)
 {
-    SetProp(data->windowHandle, L"PROP_CURSOR", cursor.impl());
+    // SetCursor only works until the next event is recieved.
+    // However, we call this method on every mouse-moved,
+    // so this should work well enough for our purposes.
+    if (HCURSOR c = cursor.impl())
+        SetCursor(c);
 }
 
 void Widget::show()