summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-10-18 18:16:37 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2020-10-18 18:16:37 +0200
commita6aa782d6d5fa9a2165dafec5794a2e2cfbc653f (patch)
treedea344ffa5b7073b94b94a35dee13519fbc04b82 /src/rw/RwHelper.cpp
parentUpload to bintray when creating tags (diff)
downloadre3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.gz
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.bz2
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.lz
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.xz
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.zst
re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.zip
Diffstat (limited to '')
-rw-r--r--src/rw/RwHelper.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index f568532a..fca5b4a4 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -431,11 +431,13 @@ CameraSize(RwCamera * camera, RwRect * rect,
}
}
- if (( origSize.w != rect->w ) && ( origSize.h != rect->h ))
+ if (( origSize.w != rect->w ) || ( origSize.h != rect->h ))
{
RwRaster *raster;
RwRaster *zRaster;
+ // BUG: game just changes camera raster's sizes, but this is a hack
+#ifdef FIX_BUGS
/*
* Destroy rasters...
*/
@@ -493,6 +495,13 @@ CameraSize(RwCamera * camera, RwRect * rect,
RwCameraSetRaster(camera, raster);
RwCameraSetZRaster(camera, zRaster);
}
+#else
+ raster = RwCameraGetRaster(camera);
+ zRaster = RwCameraGetZRaster(camera);
+
+ raster->width = zRaster->width = rect->w;
+ raster->height = zRaster->height = rect->h;
+#endif
}
/* Figure out the view window */