mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Fix lag on events
Found on sanctum2, returning 0 in XPending & XEventsQueued make the SDL do something else than polling events and makes lag the event loop. Now the event loop returns 0 when there are no more events.
This commit is contained in:
parent
9fa4053551
commit
1016e7f47f
4 changed files with 78 additions and 69 deletions
|
|
@ -24,6 +24,7 @@ private:
|
|||
|
||||
// Functions
|
||||
X11_Hook();
|
||||
int check_for_overlay(Display *d, int num_events);
|
||||
|
||||
// Hook to X11 window messages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue