MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GrowWindow

Function GrowWindow

Descent3/GameLoop.cpp:952–973  ·  view source on GitHub ↗

Make the 3D window larger

Source from the content-addressed store, hash-verified

950
951// Make the 3D window larger
952void GrowWindow() {
953 if (GetHUDMode() == HUD_LETTERBOX)
954 return;
955
956 Game_window_w += WINDOW_W_DELTA;
957 Game_window_h += WINDOW_H_DELTA;
958
959 if (Game_window_h > Max_window_h)
960 Game_window_h = Max_window_h;
961
962 if (Game_window_w > Max_window_w)
963 Game_window_w = Max_window_w;
964
965 Game_window_x = (Max_window_w - Game_window_w) / 2;
966 Game_window_y = (Max_window_h - Game_window_h) / 2;
967
968 Current_pilot.set_hud_data(NULL, NULL, NULL, &Game_window_w, &Game_window_h);
969
970 Clear_screen = 4;
971
972 ResizeCockpit();
973}
974
975// Make the 3D window smaller
976void ShrinkWindow() {

Callers 1

ProcessNormalKeyFunction · 0.85

Calls 3

GetHUDModeFunction · 0.85
ResizeCockpitFunction · 0.85
set_hud_dataMethod · 0.80

Tested by

no test coverage detected