mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-09 15:49:04 +01:00
SDL code tweaks (#177)
* SDL code tweaks * more * more * more * more * more
This commit is contained in:
1 parent
02c8661b4e
commit
b0e9c29a05
6 files changed
+99
-90
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user