Use the default arrow cursor until we implement the cursor API
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Feb 2009 04:41:09 +0000
changeset 3076 085e46423377
parent 3075 4c28a9655933
child 3077 9b58f26ede81
Use the default arrow cursor until we implement the cursor API
src/video/win32/SDL_win32events.c
--- a/src/video/win32/SDL_win32events.c	Thu Feb 19 04:15:04 2009 +0000
+++ b/src/video/win32/SDL_win32events.c	Thu Feb 19 04:41:09 2009 +0000
@@ -524,15 +524,18 @@
 
     case WM_SETCURSOR:
         {
-            /*
-               Uint16 hittest;
+            Uint16 hittest;
 
-               hittest = LOWORD(lParam);
-               if (hittest == HTCLIENT) {
-               SetCursor(SDL_hcursor);
-               return (TRUE);
-               }
-             */
+            hittest = LOWORD(lParam);
+            if (hittest == HTCLIENT) {
+                /* FIXME: Implement the cursor API */
+                static HCURSOR cursor;
+                if (!cursor) {
+                    cursor = LoadCursor(NULL, IDC_ARROW);
+                }
+                SetCursor(cursor);
+                return (TRUE);
+            }
         }
         break;