diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-09 12:43:08 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-09 12:43:08 +0200 |
commit | f754da272f3d5c97bef38ed777c5e5280a95d556 (patch) | |
tree | adbcd20debaa5d825758ce1e2c59ab54cc227f22 /src/skel/glfw | |
parent | Fix water UV on high FPS and inverted free camera (diff) | |
download | re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar.gz re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar.bz2 re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar.lz re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar.xz re3-f754da272f3d5c97bef38ed777c5e5280a95d556.tar.zst re3-f754da272f3d5c97bef38ed777c5e5280a95d556.zip |
Diffstat (limited to 'src/skel/glfw')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 13b41fcb..63ebccee 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1024,12 +1024,14 @@ void resizeCB(GLFWwindow* window, int width, int height) { if (RwInitialised && height > 0 && width > 0) { RwRect r; - // TODO support resizing with mouse. Now enabling this makes weird things to trails and CameraSize messing with sizes + // TODO fix artifacts of resizing with mouse + RsGlobal.maximumHeight = height; + RsGlobal.maximumWidth = width; r.x = 0; r.y = 0; - r.w = RsGlobal.maximumWidth; - r.h = RsGlobal.maximumHeight; + r.w = width; + r.h = height; RsEventHandler(rsCAMERASIZE, &r); } |