From bc59fdd070535fbef989f1d6acf330127c131377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Ro=C3=9F?= Date: Sat, 22 Jun 2024 18:00:42 +0200 Subject: [PATCH] [TelCom] Fixed aspect ration of the ship select screen, by preventing the use of the user supplied aspect ratio. --- Descent3/TelCom.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Descent3/TelCom.cpp b/Descent3/TelCom.cpp index bdbce3de..da858b47 100644 --- a/Descent3/TelCom.cpp +++ b/Descent3/TelCom.cpp @@ -3752,6 +3752,11 @@ void TCSSSCallback(void) { grtext_Flush(); StartFrame(325, 142, 535, 280); + + // backup user-specified aspect ratio, than disable it for ship select screen + float aspect = g3_GetAspectRatio(); + g3_SetAspectRatio(0.0f); + g3_StartFrame(&viewer_eye, &viewer_orient, D3_DEFAULT_ZOOM); rend_SetFlatColor(0); @@ -3793,6 +3798,9 @@ void TCSSSCallback(void) { DrawPolygonModel(&view_pos, &view_orient, TCShipSelect.ship_model, normalized_time, 0, &light_vec, light_scalar, light_scalar, light_scalar); + // restore user-specified aspect ratio + g3_SetAspectRatio(aspect); + g3_EndFrame(); EndFrame();