File: windowed.patch

package info (click to toggle)
torus-trooper 0.22.dfsg1-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 7,520 kB
  • sloc: xml: 839; makefile: 22
file content (37 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | download | duplicates (8)
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
32
33
34
35
36
37
# Copyright (C) 2007  Miriam Ruiz <little_miry@yahoo.es>
# Distributed under the same license as the game. See debian/copyright.

Index: torus-trooper-0.22.dfsg1/src/abagames/tt/boot.d
===================================================================
--- torus-trooper-0.22.dfsg1.orig/src/abagames/tt/boot.d	2007-08-26 18:14:13.000000000 +0000
+++ torus-trooper-0.22.dfsg1/src/abagames/tt/boot.d	2007-08-26 18:15:11.000000000 +0000
@@ -129,6 +129,9 @@
     case "-window":
       Screen.windowMode = true;
       break;
+    case "-fullscreen":
+      Screen.windowMode = false;
+      break;
     case "-res":
       if (i >= args.length - 2) {
         usage(progName);
@@ -169,5 +172,5 @@
 
 private void usage(char[] progName) {
   Logger.error
-    ("Usage: " ~ progName ~ " [-brightness [0-100]] [-luminosity [0-100]] [-window] [-res x y] [-nosound]");
+    ("Usage: " ~ progName ~ " [-brightness [0-100]] [-luminosity [0-100]] [-window] [-fullscreen] [-res x y] [-nosound]");
 }
Index: torus-trooper-0.22.dfsg1/src/abagames/util/sdl/screen3d.d
===================================================================
--- torus-trooper-0.22.dfsg1.orig/src/abagames/util/sdl/screen3d.d	2007-08-26 18:15:51.000000000 +0000
+++ torus-trooper-0.22.dfsg1/src/abagames/util/sdl/screen3d.d	2007-08-26 18:16:05.000000000 +0000
@@ -20,7 +20,7 @@
   static float brightness = 1;
   static int width = 640;
   static int height = 480;
-  static bool windowMode = false;
+  static bool windowMode = true;
   static float nearPlane = 0.1;
   static float farPlane = 1000;
  private: