Attempt to fix compiler warning.
Fixes Bugzilla #1784. (or at least the only part of it that was a real bug.)
This commit is contained in:
parent
56c6743a1b
commit
b8198f3b2a
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
for (i = 0; i < num_inputs; ++i) {
|
||||
PTOUCHINPUT input = &inputs[i];
|
||||
|
||||
const SDL_TouchID touchId = (SDL_TouchID)input->hSource;
|
||||
const SDL_TouchID touchId = (SDL_TouchID)((size_t)input->hSource);
|
||||
if (!SDL_GetTouch(touchId)) {
|
||||
if (SDL_AddTouch(touchId, "") < 0) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue