diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-09 19:21:36 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-09 19:21:36 +0200 |
commit | 609caad7a4e61a391e6306996a75d82562283803 (patch) | |
tree | b2e70c4692ec2e04e744863f352265c898267786 /src/skel | |
parent | ccarctrl big fix (diff) | |
parent | accidentally swapped reft and light (diff) | |
download | re3-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')
-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 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); } |