summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-19 21:33:09 +0100
committeraap <aap@papnet.eu>2021-01-19 21:35:25 +0100
commit2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c (patch)
treef8ad7b0e459f4271f7b162839ef681f43696fc61
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar.gz
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar.bz2
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar.lz
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar.xz
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.tar.zst
re3-2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c.zip
-rw-r--r--src/core/Radar.cpp2
-rw-r--r--src/render/Sprite2d.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index 6fbc2280..5ead82f2 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -679,7 +679,7 @@ void CRadar::DrawRadarMask()
CVector2D(-1.0, -1.0f)
};
- RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void*)FALSE);
+ RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void*)nil);
RwRenderStateSet(rwRENDERSTATEFOGENABLE, (void*)FALSE);
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
RwRenderStateSet(rwRENDERSTATESHADEMODE, (void*)rwSHADEMODEFLAT);
diff --git a/src/render/Sprite2d.cpp b/src/render/Sprite2d.cpp
index 0cd0e8bb..92f326f8 100644
--- a/src/render/Sprite2d.cpp
+++ b/src/render/Sprite2d.cpp
@@ -277,7 +277,11 @@ CSprite2d::SetMaskVertices(int n, float *positions)
RwIm2DVertexSetScreenZ(&maVertices[i], NearScreenZ);
RwIm2DVertexSetCameraZ(&maVertices[i], NearCamZ);
RwIm2DVertexSetRecipCameraZ(&maVertices[i], RecipNearClip);
- RwIm2DVertexSetIntRGBA(&maVertices[i], 255, 255, 255, 255); // 0, 0, 0, 0 on PC
+#if !defined(GTA_PS2_STUFF) && defined(RWLIBS)
+ RwIm2DVertexSetIntRGBA(&maVertices[i], 0, 0, 0, 0);
+#else
+ RwIm2DVertexSetIntRGBA(&maVertices[i], 255, 255, 255, 255);
+#endif
}
}