mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue