SDL code tweaks (#177)

* SDL code tweaks

* more

* more

* more

* more

* more
This commit is contained in:
Logan McNaughton
2025-01-25 12:43:37 +01:00
committed by GitHub
parent 02c8661b4e
commit b0e9c29a05
6 changed files with 99 additions and 90 deletions
+6 -1
View File
@@ -157,7 +157,12 @@ bool sdl_event_filter(void *userdata, SDL_Event *event)
void rdp_init(void *_window, GFX_INFO _gfx_info, bool _upscale, bool _integer_scaling, bool _fullscreen)
{
window = (SDL_Window *)_window;
SDL_AddEventWatch(sdl_event_filter, nullptr);
bool result = SDL_AddEventWatch(sdl_event_filter, nullptr);
if (!result)
{
printf("Could not add event watch.\n");
return;
}
gfx_info = _gfx_info;
fullscreen = _fullscreen;