skip frame on resize
This commit is contained in:
parent
6a88ea55ec
commit
66acf8d4a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue