diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-09 12:44:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 12:44:43 +0200 |
commit | ce4996b09ce0a062cf9043090e1cae6fd5057406 (patch) | |
tree | e8efdabd4c8ad1f1f0c6dd38c0195e4d16c8d684 /src/skel | |
parent | fixes for anims (diff) | |
parent | Menu map fixes and resizable window on GLFW (diff) | |
download | re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar.gz re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar.bz2 re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar.lz re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar.xz re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.tar.zst re3-ce4996b09ce0a062cf9043090e1cae6fd5057406.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 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); } |