mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Fix gui widgets appearing messed up initially after resizing
This commit is contained in:
parent
085b63532b
commit
e7f8548f8a
@ -150,6 +150,7 @@ static void OnResize(void* obj) {
|
||||
for (i = 0; i < Gui.ScreensCount; i++) {
|
||||
s = Gui_Screens[i];
|
||||
s->VTABLE->Layout(s);
|
||||
s->dirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,6 +169,7 @@ void Gui_Refresh(struct Screen* s) {
|
||||
s->VTABLE->ContextLost(s);
|
||||
s->VTABLE->ContextRecreated(s);
|
||||
s->VTABLE->Layout(s);
|
||||
s->dirty = true;
|
||||
}
|
||||
|
||||
static void Gui_AddCore(struct Screen* s, int priority) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user