Fix basic warnings

This commit is contained in:
James R 2021-06-19 18:32:56 -07:00
parent 28f4418132
commit c1aca51fc3
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ static int lib_setMouseGrab(lua_State *L)
return 0; return 0;
} }
static boolean lib_getCursorPosition(lua_State *L) static int lib_getCursorPosition(lua_State *L)
{ {
int x, y; int x, y;
I_GetCursorPosition(&x, &y); I_GetCursorPosition(&x, &y);

View file

@ -407,7 +407,7 @@ void I_UpdateMouseGrab(void)
boolean I_GetMouseGrab(void) boolean I_GetMouseGrab(void)
{ {
return SDL_GetWindowGrab(window); return (boolean)SDL_GetWindowGrab(window);
} }
void I_SetMouseGrab(boolean grab) void I_SetMouseGrab(boolean grab)