forked from len0rd/rockbox
sdl: improve window resizing on macOS
This enables smooth resizing of the window using a fixed aspect ratio, instead of snapping into the correct aspect ratio only when the resize operation has finished, by using an SDL event filter that gets events delivered during the resize operation (whereas SDL_PollEvent blocks until done on macOS). Change-Id: Ie6614e4b6f49a24469c5ee6a69721c9fbd440dae
This commit is contained in:
parent
8ce9d9e39e
commit
9ba59477a1
5 changed files with 14 additions and 8 deletions
|
@ -25,11 +25,12 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
#include "SDL.h"
|
||||
|
||||
extern int sdl_app_has_input_focus;
|
||||
|
||||
#ifdef __APPLE__
|
||||
void handle_sdl_events(void);
|
||||
int sdl_event_filter(void *userdata, SDL_Event * event);
|
||||
#endif
|
||||
|
||||
bool button_hold(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue