File: 03_screen.patch

package info (click to toggle)
kball 0.0.20041216-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,992 kB
  • sloc: cpp: 4,276; makefile: 65; sh: 64; ansic: 43
file content (31 lines) | stat: -rw-r--r-- 977 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Thu, 2 Jun 2016 06:21:22 +0200
Subject: _screen

---
 src/main.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp
index 5b7ec9f..9376caa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -73,7 +73,7 @@ void CMain::start(bool want_map_editor)
 int main(int argc, char *argv[] )
 {
 	int i;
-	int vid_m = GFX_AUTODETECT_FULLSCREEN; // screen desired graphic mode
+	int vid_m = GFX_AUTODETECT; // screen desired graphic mode
 	int game_color_depth = -1;  // default color depth, -1 = autodetect from desktop default
 	int vid_w = 640; // desired video resolution
 	int vid_h = 480;
@@ -102,6 +102,9 @@ int main(int argc, char *argv[] )
 		if (stricmp(argv[i], "-w") == 0)
 			vid_m = GFX_AUTODETECT_WINDOWED;
 
+		if (stricmp(argv[i], "-f") == 0)
+			vid_m = GFX_AUTODETECT_FULLSCREEN;
+
 		if (stricmp(argv[i], "-bpp16") == 0)
 			game_color_depth = 16;