Mercurial > sdl-ios-xcode
changeset 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 | 4c28a9655933 |
children | 9b58f26ede81 |
files | src/video/win32/SDL_win32events.c |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
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;