Mercurial > sdl-ios-xcode
comparison src/video/windows/SDL_windowsvideo.c @ 5088:c2539ff054c8
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 15:46:11 -0800 |
parents | e8916fe9cfc8 |
children | 455bc74f7034 |
comparison
equal
deleted
inserted
replaced
5087:e7680e2c9f3c | 5088:c2539ff054c8 |
---|---|
159 data->CoordTransform = NULL; | 159 data->CoordTransform = NULL; |
160 #endif | 160 #endif |
161 | 161 |
162 data->userDLL = LoadLibrary(TEXT("USER32.DLL")); | 162 data->userDLL = LoadLibrary(TEXT("USER32.DLL")); |
163 if (data->userDLL) { | 163 if (data->userDLL) { |
164 data->CloseTouchInputHandle = (BOOL (WINAPI *)( HTOUCHINPUT )) GetProcAddress(data->userDLL, "CloseTouchInputHandle"); | 164 data->CloseTouchInputHandle = (BOOL (WINAPI *)( HTOUCHINPUT )) GetProcAddress(data->userDLL, TEXT("CloseTouchInputHandle")); |
165 data->GetTouchInputInfo = (BOOL (WINAPI *)( HTOUCHINPUT, UINT, PTOUCHINPUT, int )) GetProcAddress(data->userDLL, "GetTouchInputInfo"); | 165 data->GetTouchInputInfo = (BOOL (WINAPI *)( HTOUCHINPUT, UINT, PTOUCHINPUT, int )) GetProcAddress(data->userDLL, TEXT("GetTouchInputInfo")); |
166 data->RegisterTouchWindow = (BOOL (WINAPI *)( HWND, ULONG )) GetProcAddress(data->userDLL, "RegisterTouchWindow"); | 166 data->RegisterTouchWindow = (BOOL (WINAPI *)( HWND, ULONG )) GetProcAddress(data->userDLL, TEXT("RegisterTouchWindow")); |
167 } | 167 } |
168 | 168 |
169 /* Set the function pointers */ | 169 /* Set the function pointers */ |
170 device->VideoInit = WIN_VideoInit; | 170 device->VideoInit = WIN_VideoInit; |
171 device->VideoQuit = WIN_VideoQuit; | 171 device->VideoQuit = WIN_VideoQuit; |
220 | 220 |
221 return device; | 221 return device; |
222 } | 222 } |
223 | 223 |
224 VideoBootStrap WINDOWS_bootstrap = { | 224 VideoBootStrap WINDOWS_bootstrap = { |
225 #ifdef _WIN32_WCE | 225 "windows", "SDL Windows video driver", WIN_Available, WIN_CreateDevice |
226 "wince", "SDL WinCE video driver", WINCE_Available, WIN_CreateDevice | |
227 #else | |
228 "windows", "SDL Win32/64 video driver", WIN_Available, WIN_CreateDevice | |
229 #endif | |
230 }; | 226 }; |
231 | 227 |
232 int | 228 int |
233 WIN_VideoInit(_THIS) | 229 WIN_VideoInit(_THIS) |
234 { | 230 { |