introduce MwLLEndDraw, which can be stubbed safely on any platforms and exists purely for wayland to be able to swap buffers at a better time

This commit is contained in:
IoIxD 2025-12-03 23:00:40 -07:00
commit 247e0b361c
7 changed files with 31 additions and 28 deletions

View file

@ -334,6 +334,8 @@ void MwLoop(MwWidget handle) {
}
if(v != 0) break;
MwLLEndDraw(handle->lowlevel);
for(i = 0; i < arrlen(handle->tick_list); i++) {
MwDispatch(handle->tick_list[i], tick);
MwDispatchUserHandler(handle->tick_list[i], MwNtickHandler, NULL);