mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
[TelCom] Fixed aspect ration of the ship select screen, by preventing the use of the user supplied aspect ratio.
This commit is contained in:
parent
62784c40c4
commit
bc59fdd070
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user