mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
GUI: get window size on every frame
This commit is contained in:
parent
6ceac62015
commit
4c1cf9991b
1 changed files with 9 additions and 5 deletions
|
@ -3082,11 +3082,15 @@ bool FurnaceGUI::loop() {
|
|||
scrConfH=scrH;
|
||||
}
|
||||
|
||||
}
|
||||
// update canvas size as well
|
||||
if (SDL_GetRendererOutputSize(sdlRend,&canvasW,&canvasH)!=0) {
|
||||
logW("updateWindow: error while getting output size! %s",SDL_GetError());
|
||||
logW("loop: error while getting output size! %s",SDL_GetError());
|
||||
} else {
|
||||
logV("updateWindow: canvas size %dx%d",canvasW,canvasH);
|
||||
//logV("updateWindow: canvas size %dx%d",canvasW,canvasH);
|
||||
// and therefore window size
|
||||
if (SDL_GetWindowSize(sdlWin,&scrW,&scrH)!=0) {
|
||||
logW("loop: error while getting window size! %s",SDL_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue