skip frame on resize

This commit is contained in:
Alessandro Mauri 2025-10-27 20:03:24 +01:00
parent 6a88ea55ec
commit 66acf8d4a3

View File

@ -93,6 +93,7 @@ fn void? Ctx.input_window_size(&ctx, short width, short height)
ctx.current_input.events.resize = ctx.width != width || ctx.height != height; ctx.current_input.events.resize = ctx.width != width || ctx.height != height;
ctx.width = width; ctx.width = width;
ctx.height = height; ctx.height = height;
if (ctx.current_input.events.resize) ctx.skip_frame = true;
} }
// Window gained/lost focus // Window gained/lost focus