Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32mouse.c @ 3253:5d7ef5970073
Fixed issues building 64-bit Windows binary
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Sep 2009 23:37:35 +0000 |
parents | 0d12e8f1de3c |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32mouse.c Sat Sep 05 21:31:50 2009 +0000 +++ b/src/video/win32/SDL_win32mouse.c Sat Sep 05 23:37:35 2009 +0000 @@ -44,7 +44,7 @@ RAWINPUTDEVICELIST *deviceList = NULL; int devCount = 0; int i; - int tmp = 0; + UINT tmp = 0; char *buffer = NULL; char *tab = "wacom"; /* since windows does't give us handles to tablets, we have to detect a tablet by it's name */ const char *rdp = "rdp_mou"; @@ -71,8 +71,8 @@ /* we're getting the details of the devices */ for (i = 0; i < devCount; ++i) { int is_rdp = 0; - int j; - int k; + UINT j; + UINT k; char *default_device_name = "Pointing device xx"; const char *reg_key_root = "System\\CurrentControlSet\\Enum\\"; char *device_name = SDL_malloc(256 * sizeof(char)); @@ -83,7 +83,7 @@ DWORD regtype = REG_SZ; DWORD out = 256 * sizeof(char); SDL_Mouse mouse; - int l; + size_t l; if (deviceList[i].dwType != RIM_TYPEMOUSE) { /* if a device isn't a mouse type we don't want it */ continue; }