mirror of https://github.com/encounter/SDL.git
SDL_os2video.c: missed replacing a use of libc function
This commit is contained in:
parent
8e9ea2e362
commit
0a0f685473
|
@ -589,7 +589,7 @@ static MRESULT EXPENTRY wndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
|
||||||
WinQueryPointerPos(HWND_DESKTOP, &pointl);
|
WinQueryPointerPos(HWND_DESKTOP, &pointl);
|
||||||
WinMapWindowPoints(HWND_DESKTOP, pWinData->hwnd, &pointl, 1);
|
WinMapWindowPoints(HWND_DESKTOP, pWinData->hwnd, &pointl, 1);
|
||||||
SDL_SendMouseMotion(pWinData->window, 0, 0,
|
SDL_SendMouseMotion(pWinData->window, 0, 0,
|
||||||
pointl.x, pWinData->window->h - pointl.y - 1);
|
pointl.x, pWinData->window->h - pointl.y - 1);
|
||||||
} else {
|
} else {
|
||||||
if (SDL_GetKeyboardFocus() == pWinData->window)
|
if (SDL_GetKeyboardFocus() == pWinData->window)
|
||||||
SDL_SetKeyboardFocus(NULL);
|
SDL_SetKeyboardFocus(NULL);
|
||||||
|
@ -1444,7 +1444,7 @@ static int OS2_VideoInit(_THIS)
|
||||||
return SDL_SetError("Window class not successfully registered.");
|
return SDL_SetError("Window class not successfully registered.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stricmp(_this->name, OS2DRIVER_NAME_VMAN) == 0)
|
if (SDL_strcasecmp(_this->name, OS2DRIVER_NAME_VMAN) == 0)
|
||||||
pVData->pOutput = &voVMan;
|
pVData->pOutput = &voVMan;
|
||||||
else
|
else
|
||||||
pVData->pOutput = &voDive;
|
pVData->pOutput = &voDive;
|
||||||
|
|
Loading…
Reference in New Issue