diff src/video/win32/SDL_win32events.c @ 3076:085e46423377

Use the default arrow cursor until we implement the cursor API
author Sam Lantinga <slouken@libsdl.org>
date Thu, 19 Feb 2009 04:41:09 +0000
parents 77c3e67f0740
children 75483112b97f
line wrap: on
line diff
--- 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;