mirror of https://github.com/aap/librw.git
window size test
This commit is contained in:
parent
cc550ff69c
commit
8b2caf8f86
|
@ -1344,7 +1344,7 @@ beginUpdate(Camera *cam)
|
|||
#ifdef LIBRW_SDL2
|
||||
SDL_GetWindowSize(glGlobals.window, &w, &h);
|
||||
#else
|
||||
glfwGetWindowSize(glGlobals.window, &w, &h);
|
||||
glfwGetFramebufferSize(glGlobals.window, &w, &h);
|
||||
#endif
|
||||
}else{
|
||||
w = fb->width;
|
||||
|
|
Loading…
Reference in New Issue