comparison src/video/win32/SDL_win32window.c @ 4948:6546eaa20271

Fixed crash on Windows XP
author Sam Lantinga <slouken@libsdl.org>
date Mon, 03 Jan 2011 14:39:41 -0800
parents 716b2cbf4c9e
children c8f11c4ced7d
comparison
equal deleted inserted replaced
4947:619884e8a714 4948:6546eaa20271
143 ClipCursor(&rect); 143 ClipCursor(&rect);
144 } 144 }
145 } 145 }
146 146
147 /* Enable multi-touch */ 147 /* Enable multi-touch */
148 videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM)); 148 if (videodata->RegisterTouchWindow) {
149 videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
150 }
149 151
150 /* All done! */ 152 /* All done! */
151 window->driverdata = data; 153 window->driverdata = data;
152 return 0; 154 return 0;
153 } 155 }
640 } 642 }
641 SDL_HelperWindowClass = 0; 643 SDL_HelperWindowClass = 0;
642 } 644 }
643 } 645 }
644 646
645
646 /* vi: set ts=4 sw=4 expandtab: */ 647 /* vi: set ts=4 sw=4 expandtab: */