Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Dec 24, 2024
1 parent 4424c37 commit b835a66
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ruisapp/glue/linux/glue_wayland.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,7 @@ int main(int argc, const char** argv)
// sequence:
// - update updateables
// - render
// - wait for events/next cycle
// - wait for events and handle them/next cycle
auto to_wait_ms = app.gui.update();
render(app);

Expand Down
4 changes: 1 addition & 3 deletions src/ruisapp/glue/linux/glue_xorg.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ int main(int argc, const char** argv)
// sequence:
// - update updateables
// - render
// - wait for events/next cycle
// - wait for events and handle them/next cycle
auto to_wait_ms = app->gui.update();
render(*app);
wait_set.wait(to_wait_ms);
Expand Down Expand Up @@ -1387,8 +1387,6 @@ int main(int argc, const char** argv)
render(*app);
break;
case ConfigureNotify:
// TRACE(<<
//"ConfigureNotify X event got" << std::endl)
// squash all window resize events into one, for that store the new
// window dimensions and update the viewport later only once
new_win_dims.x() = ruis::real(event.xconfigure.width);
Expand Down
2 changes: 1 addition & 1 deletion src/ruisapp/glue/macosx/glue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ int main(int argc, const char** argv){
// sequence:
// - update updateables
// - render
// - wait for events/next cycle
// - wait for events and handle them/next cycle
uint32_t millis = ruisapp::inst().gui.update();
render(ruisapp::inst());
NSEvent *event = [ww.applicationObjectId
Expand Down
Loading

0 comments on commit b835a66

Please sign in to comment.