summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-24 15:41:29 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-24 15:41:29 +0200
commit14755a4ff4668e2cf2fa580797321141770e3b36 (patch)
treeb5001322abefa241048aaab22498c357f1ed3806 /src/core
parentCVehicle fixes (diff)
downloadre3-14755a4ff4668e2cf2fa580797321141770e3b36.tar
re3-14755a4ff4668e2cf2fa580797321141770e3b36.tar.gz
re3-14755a4ff4668e2cf2fa580797321141770e3b36.tar.bz2
re3-14755a4ff4668e2cf2fa580797321141770e3b36.tar.lz
re3-14755a4ff4668e2cf2fa580797321141770e3b36.tar.xz
re3-14755a4ff4668e2cf2fa580797321141770e3b36.tar.zst
re3-14755a4ff4668e2cf2fa580797321141770e3b36.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index acdf6f4e..666758c8 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -137,9 +137,13 @@ DoRWStuffStartOfFrame(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomR
CRGBA TopColor(TopRed, TopGreen, TopBlue, Alpha);
CRGBA BottomColor(BottomRed, BottomGreen, BottomBlue, Alpha);
+#ifndef ASPECT_RATIO_SCALE
+ CameraSize(Scene.camera, nil, SCREEN_VIEWWINDOW, (CMenuManager::m_PrefsUseWideScreen ? 16.f / 9.f : 4.f / 3.f));
+#else
CameraSize(Scene.camera, nil, SCREEN_VIEWWINDOW, SCREEN_ASPECT_RATIO);
+#endif
CVisibilityPlugins::SetRenderWareCamera(Scene.camera);
- RwCameraClear(Scene.camera, &gColourTop, rwCAMERACLEARZ);
+ RwCameraClear(Scene.camera, &TopColor.rwRGBA, rwCAMERACLEARZ);
if(!RsCameraBeginUpdate(Scene.camera))
return false;
@@ -155,7 +159,11 @@ DoRWStuffStartOfFrame(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomR
bool
DoRWStuffStartOfFrame_Horizon(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha)
{
+#ifndef ASPECT_RATIO_SCALE
+ CameraSize(Scene.camera, nil, SCREEN_VIEWWINDOW, (CMenuManager::m_PrefsUseWideScreen ? 16.f/9.f : 4.f/3.f));
+#else
CameraSize(Scene.camera, nil, SCREEN_VIEWWINDOW, SCREEN_ASPECT_RATIO);
+#endif
CVisibilityPlugins::SetRenderWareCamera(Scene.camera);
RwCameraClear(Scene.camera, &gColourTop, rwCAMERACLEARZ);