Fix pixelpresenter not passing along event-handlers

This commit is contained in:
Elias Batek 2023-12-22 02:21:56 +01:00
parent 1d2e57f61a
commit 3f0e52f875
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ import arsd.simpledisplay;
- or something similar
- to ensure `Scaling.integer` doesnt break unexpectedly
- Hybrid scaling mode: integer up, FP down
- Fix timing
*/
///
@ -614,8 +615,9 @@ final class PixelPresenter {
///
int eventLoop(T...)(T eventHandlers) if (T.length == 0 || is(T[0] == delegate)) {
return _pro.window.eventLoop(
16,
16, // ~60 FPS
delegate() { eventHandlers[0](); _pro.window.redrawOpenGlSceneSoon(); },
eventHandlers[1 .. $],
);
}