Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32window.c @ 3566:07c8339c95c6
Fixed bug #905
Give the foreign window message proc more control over Windows events.
This may need to be adjusted when we add the capability for the app to specify whether it wants SDL to handle input for the window or not.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 15 Dec 2009 09:20:10 +0000 |
parents | e96be66e3673 |
children | 64ce267332c6 |
comparison
equal
deleted
inserted
replaced
3565:f43c8f688f77 | 3566:07c8339c95c6 |
---|---|
110 return -1; | 110 return -1; |
111 } | 111 } |
112 | 112 |
113 /* Set up the window proc function */ | 113 /* Set up the window proc function */ |
114 data->wndproc = (WNDPROC) GetWindowLongPtr(hwnd, GWLP_WNDPROC); | 114 data->wndproc = (WNDPROC) GetWindowLongPtr(hwnd, GWLP_WNDPROC); |
115 if (data->wndproc == NULL) { | 115 if (data->wndproc == DefWindowProc) { |
116 data->wndproc = DefWindowProc; | 116 data->wndproc = NULL; |
117 } else { | 117 } |
118 SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc); | 118 SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc); |
119 } | |
120 | 119 |
121 /* Fill in the SDL window with the window data */ | 120 /* Fill in the SDL window with the window data */ |
122 { | 121 { |
123 POINT point; | 122 POINT point; |
124 point.x = 0; | 123 point.x = 0; |