fix transition to xlib

This commit is contained in:
Matthew 2025-12-04 11:49:30 +11:00
parent dbc5c48a1f
commit d69b5b5993
3 changed files with 11 additions and 2 deletions

@ -1 +1 @@
Subproject commit 6bd47180639496b491fba904d382f3f9c47cd627 Subproject commit b05d0553837233818f1cbdb1dc3a3981eac1a0a3

@ -1 +1 @@
Subproject commit 9c541f8cf508d947944ef5f944fcf0ebc0f69d9e Subproject commit 60b4e0cb27ba304c7b9444a2da8a581211c21ca9

View File

@ -29,6 +29,9 @@ void main(string[] argv)
EditorCtx ctx = InitEditorCtx(&window); EditorCtx ctx = InitEditorCtx(&window);
import ui;
import vulkan;
u64 no_ev_count; u64 no_ev_count;
while (true) while (true)
{ {
@ -38,6 +41,12 @@ void main(string[] argv)
break; break;
} }
if(g_ui_ctx.rd.res != Vec2(window.w, window.h).v)
{
Logf("resize");
SetExtent(&g_ui_ctx.rd, window.w, window.h);
}
if(inputs.list.first == null) if(inputs.list.first == null)
{ {
no_ev_count += 1; no_ev_count += 1;