diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-17 17:50:41 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-17 17:50:41 +0200 |
commit | cae3990eacbf94c87c27387f4c78ef43760e106c (patch) | |
tree | d5718e66815841196eb1826c64b7d7b1b0439cda /src/rw | |
parent | saves part 1 (diff) | |
parent | Merge pull request #765 from erorcun/miami (diff) | |
download | re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar.gz re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar.bz2 re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar.lz re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar.xz re3-cae3990eacbf94c87c27387f4c78ef43760e106c.tar.zst re3-cae3990eacbf94c87c27387f4c78ef43760e106c.zip |
Diffstat (limited to 'src/rw')
-rw-r--r-- | src/rw/RwHelper.cpp | 12 |
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 */ |