GUI: DirectX 11 render backend, part 2

This commit is contained in:
tildearrow 2023-06-12 19:43:26 -05:00
parent 2c912da89a
commit cf144f4fe9
5 changed files with 33 additions and 5 deletions

View file

@ -3420,6 +3420,7 @@ bool FurnaceGUI::loop() {
logV("portrait: %d (%dx%d)",portrait,scrW,scrH);
logD("window resized to %dx%d",scrW,scrH);
updateWindow=true;
rend->resized(ev);
break;
case SDL_WINDOWEVENT_MOVED:
scrX=ev.window.data1;
@ -5824,8 +5825,8 @@ bool FurnaceGUI::loop() {
}
}
}
rend->present();
drawTimeEnd=SDL_GetPerformanceCounter();
rend->present();
if (settings.renderClearPos) {
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
}