Mercurial > sdl-ios-xcode
changeset 4948:6546eaa20271
Fixed crash on Windows XP
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 03 Jan 2011 14:39:41 -0800 |
parents | 619884e8a714 |
children | 68da5a234bba |
files | src/video/win32/SDL_win32window.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c Sat Jan 01 20:46:39 2011 -0800 +++ b/src/video/win32/SDL_win32window.c Mon Jan 03 14:39:41 2011 -0800 @@ -145,7 +145,9 @@ } /* Enable multi-touch */ - videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM)); + if (videodata->RegisterTouchWindow) { + videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM)); + } /* All done! */ window->driverdata = data; @@ -642,5 +644,4 @@ } } - /* vi: set ts=4 sw=4 expandtab: */