summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-12 19:08:04 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-12 19:08:04 +0200
commit292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c (patch)
treea5c11ef9c50c03e06c29a84d7f016ce1d9e35d77
parentCameraCreate/CameraDestroy/CameraSize done (diff)
downloadre3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar.gz
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar.bz2
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar.lz
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar.xz
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.tar.zst
re3-292fd5ad2494fd8cbd500ad0b82bb51620e9fe5c.zip
Diffstat (limited to '')
-rw-r--r--src/RwHelper.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/RwHelper.cpp b/src/RwHelper.cpp
index 5c007621..cb0c1a4e 100644
--- a/src/RwHelper.cpp
+++ b/src/RwHelper.cpp
@@ -117,39 +117,39 @@ CameraSize(RwCamera * camera, RwRect * rect,
zRaster = RwRasterCreate(rect->w, rect->h, 0, rwRASTERTYPEZBUFFER);
if( raster && zRaster )
- {
- RwCameraSetRaster(camera, raster);
- RwCameraSetZRaster(camera, zRaster);
- }
- else
- {
- if( raster )
- {
- RwRasterDestroy(raster);
- }
-
- if( zRaster )
- {
- RwRasterDestroy(zRaster);
- }
-
- rect->x = origSize.x;
- rect->y = origSize.y;
+ {
+ RwCameraSetRaster(camera, raster);
+ RwCameraSetZRaster(camera, zRaster);
+ }
+ else
+ {
+ if( raster )
+ {
+ RwRasterDestroy(raster);
+ }
+
+ if( zRaster )
+ {
+ RwRasterDestroy(zRaster);
+ }
+
+ rect->x = origSize.x;
+ rect->y = origSize.y;
rect->w = origSize.w;
- rect->h = origSize.h;
+ rect->h = origSize.h;
- /*
- * Use default values...
- */
- raster =
- RwRasterCreate(rect->w, rect->h, 0, rwRASTERTYPECAMERA);
+ /*
+ * Use default values...
+ */
+ raster =
+ RwRasterCreate(rect->w, rect->h, 0, rwRASTERTYPECAMERA);
- zRaster =
- RwRasterCreate(rect->w, rect->h, 0, rwRASTERTYPEZBUFFER);
+ zRaster =
+ RwRasterCreate(rect->w, rect->h, 0, rwRASTERTYPEZBUFFER);
- RwCameraSetRaster(camera, raster);
- RwCameraSetZRaster(camera, zRaster);
- }
+ RwCameraSetRaster(camera, raster);
+ RwCameraSetZRaster(camera, zRaster);
+ }
}
/* Figure out the view window */
@@ -269,7 +269,7 @@ CameraCreate(RwInt32 width, RwInt32 height, RwBool zBuffer)
}
STARTPATCHES
- InjectHook(0x526450, GetFirstObjectCallback, PATCH_JUMP);
+ //InjectHook(0x526450, GetFirstObjectCallback, PATCH_JUMP);
InjectHook(0x526460, GetFirstObject, PATCH_JUMP);
InjectHook(0x527170, CameraSize, PATCH_JUMP);
InjectHook(0x527340, CameraDestroy, PATCH_JUMP);