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 3076085e46423377
parent 3075 4c28a9655933
child 3077 9b58f26ede81
Use the default arrow cursor until we implement the cursor API
src/video/win32/SDL_win32events.c
     1.1 --- a/src/video/win32/SDL_win32events.c	Thu Feb 19 04:15:04 2009 +0000
     1.2 +++ b/src/video/win32/SDL_win32events.c	Thu Feb 19 04:41:09 2009 +0000
     1.3 @@ -524,15 +524,18 @@
     1.4  
     1.5      case WM_SETCURSOR:
     1.6          {
     1.7 -            /*
     1.8 -               Uint16 hittest;
     1.9 +            Uint16 hittest;
    1.10  
    1.11 -               hittest = LOWORD(lParam);
    1.12 -               if (hittest == HTCLIENT) {
    1.13 -               SetCursor(SDL_hcursor);
    1.14 -               return (TRUE);
    1.15 -               }
    1.16 -             */
    1.17 +            hittest = LOWORD(lParam);
    1.18 +            if (hittest == HTCLIENT) {
    1.19 +                /* FIXME: Implement the cursor API */
    1.20 +                static HCURSOR cursor;
    1.21 +                if (!cursor) {
    1.22 +                    cursor = LoadCursor(NULL, IDC_ARROW);
    1.23 +                }
    1.24 +                SetCursor(cursor);
    1.25 +                return (TRUE);
    1.26 +            }
    1.27          }
    1.28          break;
    1.29