Menu map fixes and resizable window on GLFW

This commit is contained in:
eray orçunus
2020-05-09 13:43:08 +03:00
parent e0b3418e65
commit f754da272f
4 changed files with 41 additions and 10 deletions

View File

@ -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);
}