~ubuntu-branches/ubuntu/hardy/stormbaancoureur/hardy

« back to all changes in this revision

Viewing changes to debian/patches/fullscreen_optional.patch

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz
  • Date: 2007-08-22 07:53:07 UTC
  • Revision ID: james.westby@ubuntu.com-20070822075307-rj63x1g26269s27p
Tags: 1.5.2-1
Initial release (Closes: #427297)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- stormbaancoureur-1.5.orig/src-stormbaancoureur/main.cxx
 
2
+++ stormbaancoureur-1.5/src-stormbaancoureur/main.cxx
 
3
@@ -702,6 +702,13 @@
 
4
   fprintf(stderr,"plib is (c) by Steve Baker\n");
 
5
   fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n");
 
6
 
 
7
+  bool fullscreen = false;
 
8
+  for (int argi=0; argi<argc; argi++)
 
9
+  {
 
10
+    if (strcmp(argv[argi],"-fullscreen")==0) fullscreen=true;
 
11
+    else if (strcmp(argv[argi],"-window")==0) fullscreen=false;
 
12
+  }
 
13
+
 
14
   char *bindirname  = dirname(argv[0]);
 
15
   if (!strcmp(bindirname,"."))
 
16
     dirprefix="/usr/share/games/stormbaancoureur";
 
17
@@ -737,7 +744,7 @@
 
18
   glutSpecialFunc (special);
 
19
   glutSpecialUpFunc (specialUp);
 
20
   glutIdleFunc (idle);
 
21
-  glutFullScreen();
 
22
+  if (fullscreen) glutFullScreen();
 
23
 
 
24
   ssgInit();
 
25