summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw/glfw.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:36 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:36 +0200
commit609caad7a4e61a391e6306996a75d82562283803 (patch)
treeb2e70c4692ec2e04e744863f352265c898267786 /src/skel/glfw/glfw.cpp
parentccarctrl big fix (diff)
parentaccidentally swapped reft and light (diff)
downloadre3-609caad7a4e61a391e6306996a75d82562283803.tar
re3-609caad7a4e61a391e6306996a75d82562283803.tar.gz
re3-609caad7a4e61a391e6306996a75d82562283803.tar.bz2
re3-609caad7a4e61a391e6306996a75d82562283803.tar.lz
re3-609caad7a4e61a391e6306996a75d82562283803.tar.xz
re3-609caad7a4e61a391e6306996a75d82562283803.tar.zst
re3-609caad7a4e61a391e6306996a75d82562283803.zip
Diffstat (limited to 'src/skel/glfw/glfw.cpp')
-rw-r--r--src/skel/glfw/glfw.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index 34f24c5d..3ae363c7 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);
}