Commit MetaInfo

Revisionf8197e177d0b53b79e028c4136c70b0cd5c01d54 (tree)
Time2021-10-11 02:55:03
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed the virtual screen not being updated when the screen size was changed.

Change Summary

Incremental Difference

diff -r 2195e2f1ae58 -r f8197e177d0b src/v_font.cpp
--- a/src/v_font.cpp Thu Oct 07 11:10:21 2021 -0400
+++ b/src/v_font.cpp Sun Oct 10 13:55:03 2021 -0400
@@ -2695,9 +2695,6 @@
26952695 IntermissionFont = BigFont;
26962696 }
26972697 }
2698-
2699- // [AK] Now that the SmallFont is initialized, update the scaled text height.
2700- C_UpdateVirtualScreen();
27012698 }
27022699
27032700 void V_ClearFonts()
diff -r 2195e2f1ae58 -r f8197e177d0b src/v_video.cpp
--- a/src/v_video.cpp Thu Oct 07 11:10:21 2021 -0400
+++ b/src/v_video.cpp Sun Oct 10 13:55:03 2021 -0400
@@ -1389,6 +1389,9 @@
13891389
13901390 M_RefreshModesList ();
13911391
1392+ // [AK] Reset the virtual screen if the screen size changed.
1393+ C_UpdateVirtualScreen();
1394+
13921395 // [TP] Inform the server of our new resolution.
13931396 if ( NETWORK_GetState() == NETSTATE_CLIENT )
13941397 CLIENTCOMMANDS_SetVideoResolution();
Show on old repository browser