summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-09 12:43:08 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-09 12:58:31 +0200
commitb80c4bae6be24ff7f261238a36e4c0c5519bef5f (patch)
tree36f82233c2627587b4d21d590b0350b4d3125b95 /src/skel
parentMerge pull request #526 from Nick007J/miami (diff)
downloadre3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar.gz
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar.bz2
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar.lz
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar.xz
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.tar.zst
re3-b80c4bae6be24ff7f261238a36e4c0c5519bef5f.zip
Diffstat (limited to 'src/skel')
-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);
}