summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-14 17:07:05 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-17 16:35:26 +0200
commitb98864d134b747c8f594c9194918b93040f88c1f (patch)
tree852ce957f21b35a655c583ba397a7cdceeb59492 /src/rw/RwHelper.cpp
parentupdate librw (diff)
downloadre3-b98864d134b747c8f594c9194918b93040f88c1f.tar
re3-b98864d134b747c8f594c9194918b93040f88c1f.tar.gz
re3-b98864d134b747c8f594c9194918b93040f88c1f.tar.bz2
re3-b98864d134b747c8f594c9194918b93040f88c1f.tar.lz
re3-b98864d134b747c8f594c9194918b93040f88c1f.tar.xz
re3-b98864d134b747c8f594c9194918b93040f88c1f.tar.zst
re3-b98864d134b747c8f594c9194918b93040f88c1f.zip
Diffstat (limited to '')
-rw-r--r--src/rw/RwHelper.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index 07304b77..85418edd 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -534,12 +534,13 @@ CameraSize(RwCamera * camera, RwRect * rect,
}
}
- // BUG: game just changes camera raster's sizes, but this is a hack
- 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...
*/
@@ -597,6 +598,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 */