Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash on Windows XP
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 3, 2011
1 parent ffc631b commit 4263b4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/win32/SDL_win32window.c
Expand Up @@ -145,7 +145,9 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
}

/* 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;
Expand Down Expand Up @@ -642,5 +644,4 @@ SDL_HelperWindowDestroy(void)
}
}


/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 4263b4f

Please sign in to comment.