mirror of
https://github.com/halpz/re3.git
synced 2025-06-30 04:26:20 +00:00
Menu map fixes and resizable window on GLFW
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user