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

Function InitGameScreen

Descent3/game.cpp:771–782  ·  view source on GitHub ↗

Setup the game screen

Source from the content-addressed store, hash-verified

769
770// Setup the game screen
771void InitGameScreen(int w, int h) {
772 if (w > Max_window_w)
773 w = Max_window_w;
774 if (h > Max_window_h)
775 h = Max_window_h;
776
777 Game_window_w = w;
778 Game_window_h = h;
779
780 Game_window_x = (Max_window_w - Game_window_w) / 2;
781 Game_window_y = (Max_window_h - Game_window_h) / 2;
782}
783
784// Setup whatever needs to be setup for game mode
785bool InitGame() {

Callers 2

SetHUDModeFunction · 0.85
SetScreenModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected