comparison src/video/win32/SDL_win32events.c @ 4815:93402b9dd20c

Added Andreas's patch to fix my silly C++-style errors.
author Eli Gottlieb <eligottlieb@gmail.com>
date Thu, 29 Jul 2010 22:57:39 -0400
parents 0bfda420c936
children 7b1d35d98294
comparison
equal deleted inserted replaced
4814:4f7133445367 4815:93402b9dd20c
26 #endif 26 #endif
27 27
28 #include "SDL_config.h" 28 #include "SDL_config.h"
29 29
30 #include "SDL_win32video.h" 30 #include "SDL_win32video.h"
31 #include "SDL_win32shape.h"
31 #include "SDL_syswm.h" 32 #include "SDL_syswm.h"
32 #include "SDL_vkeys.h" 33 #include "SDL_vkeys.h"
33 #include "../../events/SDL_events_c.h" 34 #include "../../events/SDL_events_c.h"
34 35
35 /*#define WMMSG_DEBUG*/ 36 /*#define WMMSG_DEBUG*/
247 POINT point; 248 POINT point;
248 USHORT flags; 249 USHORT flags;
249 int w, h; 250 int w, h;
250 251
251 /* we're collecting raw data to be able to identify the mouse (if there are several) */ 252 /* we're collecting raw data to be able to identify the mouse (if there are several) */
252 GetRawInputData((HRAWINPUT) lParam, RID_INPUT, NULL, &size, 253 GetRawInputData((HRAWINPUT) lParam, RID_INPUT, NULL, (PUINT)&size,
253 sizeof(RAWINPUTHEADER)); 254 sizeof(RAWINPUTHEADER));
254 lpb = SDL_stack_alloc(BYTE, size); 255 lpb = SDL_stack_alloc(BYTE, size);
255 GetRawInputData((HRAWINPUT) lParam, RID_INPUT, lpb, &size, 256 GetRawInputData((HRAWINPUT) lParam, RID_INPUT, lpb, (PUINT)&size,
256 sizeof(RAWINPUTHEADER)); 257 sizeof(RAWINPUTHEADER));
257 raw = (RAWINPUT *) lpb; 258 raw = (RAWINPUT *) lpb;
258 header = &raw->header; 259 header = &raw->header;
259 flags = raw->data.mouse.usButtonFlags; 260 flags = raw->data.mouse.usButtonFlags;
260 261
491 int style; 492 int style;
492 BOOL menu; 493 BOOL menu;
493 494
494 /* If we allow resizing, let the resize happen naturally */ 495 /* If we allow resizing, let the resize happen naturally */
495 if(SDL_IsShapedWindow(data->window)) 496 if(SDL_IsShapedWindow(data->window))
496 SDL_ResizeWindowShape(data->window); 497 Win32_ResizeWindowShape(data->window);
497 if (SDL_GetWindowFlags(data->window) & SDL_WINDOW_RESIZABLE) { 498 if (SDL_GetWindowFlags(data->window) & SDL_WINDOW_RESIZABLE) {
498 returnCode = 0; 499 returnCode = 0;
499 break; 500 break;
500 } 501 }
501 502