GUI: get window size

This commit is contained in:
tildearrow 2022-10-24 04:09:25 -05:00
parent 8b80009d92
commit 1a38ed2261

View file

@ -3086,6 +3086,7 @@ bool FurnaceGUI::loop() {
if (SDL_GetRendererOutputSize(sdlRend,&canvasW,&canvasH)!=0) { if (SDL_GetRendererOutputSize(sdlRend,&canvasW,&canvasH)!=0) {
logW("updateWindow: error while getting output size! %s",SDL_GetError()); logW("updateWindow: error while getting output size! %s",SDL_GetError());
} else { } else {
SDL_GetWindowSize(sdlWin,&scrW,&scrH);
logV("updateWindow: canvas size %dx%d",canvasW,canvasH); logV("updateWindow: canvas size %dx%d",canvasW,canvasH);
} }
} }