mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-17 22:10:12 +00:00
GUI: get window size
This commit is contained in:
parent
8b80009d92
commit
1a38ed2261
1 changed files with 1 additions and 0 deletions
|
@ -3086,6 +3086,7 @@ bool FurnaceGUI::loop() {
|
|||
if (SDL_GetRendererOutputSize(sdlRend,&canvasW,&canvasH)!=0) {
|
||||
logW("updateWindow: error while getting output size! %s",SDL_GetError());
|
||||
} else {
|
||||
SDL_GetWindowSize(sdlWin,&scrW,&scrH);
|
||||
logV("updateWindow: canvas size %dx%d",canvasW,canvasH);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue