skip frame on resize
This commit is contained in:
parent
6a88ea55ec
commit
66acf8d4a3
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user