diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-07 15:08:39 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-07 15:08:39 +0300 |
commit | 1df8e7976fd474225060cb7b4ac34bac6ef29906 (patch) | |
tree | 74c4f2d668ddfc002ca34e2081d3a45a526375ab /src/core/main.cpp | |
parent | 568bdcfd740b58dfdeef4944f45550572d903956 (diff) |
Aspect ratio fix for player skin menu
Diffstat (limited to 'src/core/main.cpp')
-rw-r--r-- | src/core/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp index 50494ef3..8985d56a 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -199,7 +199,11 @@ Idle(void *arg) Render2dStuff(); }else{ float viewWindow = DEFAULT_VIEWWINDOW; +#ifdef ASPECT_RATIO_SCALE + CameraSize(Scene.camera, nil, viewWindow, SCREEN_ASPECT_RATIO); +#else CameraSize(Scene.camera, nil, viewWindow, DEFAULT_ASPECT_RATIO); +#endif CVisibilityPlugins::SetRenderWareCamera(Scene.camera); RwCameraClear(Scene.camera, &gColourTop, rwCAMERACLEARZ); if(!RsCameraBeginUpdate(Scene.camera)) @@ -234,7 +238,11 @@ FrontendIdle(void) return; float viewWindow = DEFAULT_VIEWWINDOW; +#ifdef ASPECT_RATIO_SCALE + CameraSize(Scene.camera, nil, viewWindow, SCREEN_ASPECT_RATIO); +#else CameraSize(Scene.camera, nil, viewWindow, DEFAULT_ASPECT_RATIO); +#endif CVisibilityPlugins::SetRenderWareCamera(Scene.camera); RwCameraClear(Scene.camera, &gColourTop, rwCAMERACLEARZ); if(!RsCameraBeginUpdate(Scene.camera)) |