Setup the game screen
| 769 | |
| 770 | // Setup the game screen |
| 771 | void 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 |
| 785 | bool InitGame() { |
no outgoing calls
no test coverage detected