SDL_os2video.c: missed replacing a use of libc function

This commit is contained in:
Ozkan Sezer 2021-10-18 14:10:56 +03:00
parent 8e9ea2e362
commit 0a0f685473
1 changed files with 2 additions and 2 deletions

View File

@ -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;