use SDL_AddEventWatch

This commit is contained in:
Logan McNaughton
2025-01-14 21:42:03 +01:00
parent be67cb264c
commit 0a10b2c0ba
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ int sdl_event_filter(void *userdata, SDL_Event *event)
void rdp_init(void *_window, GFX_INFO _gfx_info, bool _fullscreen, bool _upscale)
{
window = (SDL_Window *)_window;
SDL_SetEventFilter(sdl_event_filter, nullptr);
SDL_AddEventWatch(sdl_event_filter, nullptr);
gfx_info = _gfx_info;
fullscreen = _fullscreen;
+1 -1
View File
@@ -23,7 +23,7 @@ extern "C"
uint32_t *VI_WIDTH_REG;
} GFX_INFO;
void rdp_init(void *_window, GFX_INFO _gfx_info, bool fullscreen, bool _upscale);
void rdp_init(void *_window, GFX_INFO _gfx_info, bool _fullscreen, bool _upscale);
void rdp_close();
void rdp_set_vi_register(uint32_t reg, uint32_t value);
bool rdp_update_screen();