mirror of
https://github.com/aap/librw.git
synced 2025-02-24 13:07:18 +00:00
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…
x
Reference in New Issue
Block a user