Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32window.c @ 2581:a1c00531ee00 gsoc2008_force_feedback
Minor changes for it to compile.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 11:29:19 +0000 |
parents | 64fa227c01ce |
children | 9f0f0a532343 |
comparison
equal
deleted
inserted
replaced
2580:64fa227c01ce | 2581:a1c00531ee00 |
---|---|
418 * Creates a HelperWindow used for DirectInput events. | 418 * Creates a HelperWindow used for DirectInput events. |
419 */ | 419 */ |
420 int | 420 int |
421 SDL_HelperWindowCreate(void) | 421 SDL_HelperWindowCreate(void) |
422 { | 422 { |
423 HINSTANCE hInstance = pGetModuleHandleA(NULL); | 423 HINSTANCE hInstance = GetModuleHandleA(NULL); |
424 const char *class_name = "SDLHelperWindowInputCatcher"; | 424 const char *class_name = "SDLHelperWindowInputCatcher"; |
425 const char *win_name = "SDLHelperWindowInputMsgWindow"; | 425 const char *win_name = "SDLHelperWindowInputMsgWindow"; |
426 WNDCLASSEX wce; | 426 WNDCLASSEX wce; |
427 | 427 |
428 ZeroMemory(&wce, sizeof (wce)); | 428 ZeroMemory(&wce, sizeof (wce)); |
429 wce.cbSize = sizeof(WNDCLASSEX); | 429 wce.cbSize = sizeof(WNDCLASSEX); |
430 wce.lpfnWndProc = RawWndProc; | 430 wce.lpfnWndProc = NULL; |
431 wce.lpszClassName = class_name; | 431 wce.lpszClassName = class_name; |
432 wce.hInstance = hInstance; | 432 wce.hInstance = hInstance; |
433 | 433 |
434 SDL_HelperWindow = pCreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW, | 434 SDL_HelperWindow = CreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW, |
435 CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, | 435 CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, |
436 CW_USEDEFAULT, HWND_MESSAGE, NULL, hInstance, NULL); | 436 CW_USEDEFAULT, HWND_MESSAGE, NULL, hInstance, NULL); |
437 | 437 |
438 if (SDL_HelperWindow == NULL) { | 438 if (SDL_HelperWindow == NULL) { |
439 SDL_SetError("Unable to create Helper Window."); | 439 SDL_SetError("Unable to create Helper Window."); |
449 */ | 449 */ |
450 void | 450 void |
451 SDL_HelperWindowDestroy(void) | 451 SDL_HelperWindowDestroy(void) |
452 { | 452 { |
453 if (SDL_HelperWindow) { | 453 if (SDL_HelperWindow) { |
454 pDestroyWindow(SDL_HelperWindow); | 454 DestroyWindow(SDL_HelperWindow); |
455 SDL_HelperWindow = NULL; | 455 SDL_HelperWindow = NULL; |
456 } | 456 } |
457 } | 457 } |
458 | 458 |
459 | 459 |