1 (* Copyright (C) Doom 2D: Forever Developers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *)
15 {$INCLUDE ../../../shared/a_modes.inc}
18 interface
20 uses
21 {$IFDEF ENABLE_MENU}
22 g_gui,
23 {$ENDIF}
24 g_base // TRectWH
25 ;
44 {$IFDEF ENABLE_GIBS}
46 {$ENDIF}
48 {$IFDEF ENABLE_GFX}
50 {$ENDIF}
52 {$IFDEF ENABLE_TOUCH}
53 // touch screen button location and size
55 {$ENDIF}
57 {$IFDEF ENABLE_MENU}
62 {$ENDIF}
66 implementation
68 uses
69 {$IFDEF ENABLE_SYSTEM}
70 g_system,
71 {$ENDIF}
75 ;
78 begin
82 begin
86 begin
90 begin
94 begin
95 {$IFDEF ENABLE_SYSTEM}
98 {$ENDIF}
102 begin
106 begin
110 begin
114 begin
124 begin
125 {$IFDEF ENABLE_SYSTEM}
126 if sys_SetDisplayMode(Max(1, gRC_Width), Max(1, gRC_Height), Max(1, gBPP), gRC_FullScreen, gRC_Maximized) then
128 else
131 {$ENDIF}
135 begin
139 {$IFDEF ENABLE_GIBS}
141 begin
147 {$ENDIF}
149 {$IFDEF ENABLE_GFX}
151 begin
153 {$ENDIF}
155 {$IFDEF ENABLE_TOUCH}
157 begin
160 {$ENDIF}
162 {$IFDEF ENABLE_MENU}
164 begin
169 begin
174 begin
179 begin
182 {$ENDIF}
185 begin