r3696 - packages/trunk/stormbaancoureur/debian/patches

Miriam Ruiz baby-guest at alioth.debian.org
Wed Aug 15 16:47:08 UTC 2007


Author: baby-guest
Date: 2007-08-15 16:47:08 +0000 (Wed, 15 Aug 2007)
New Revision: 3696

Added:
   packages/trunk/stormbaancoureur/debian/patches/fullscreen_optional.patch
Modified:
   packages/trunk/stormbaancoureur/debian/patches/series
Log:
Made fullscreen optional



Added: packages/trunk/stormbaancoureur/debian/patches/fullscreen_optional.patch
===================================================================
--- packages/trunk/stormbaancoureur/debian/patches/fullscreen_optional.patch	                        (rev 0)
+++ packages/trunk/stormbaancoureur/debian/patches/fullscreen_optional.patch	2007-08-15 16:47:08 UTC (rev 3696)
@@ -0,0 +1,25 @@
+--- stormbaancoureur-1.5.orig/src-stormbaancoureur/main.cxx
++++ stormbaancoureur-1.5/src-stormbaancoureur/main.cxx
+@@ -702,6 +702,13 @@
+   fprintf(stderr,"plib is (c) by Steve Baker\n");
+   fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n");
+ 
++  bool fullscreen = false;
++  for (int argi=0; argi<argc; argi++)
++  {
++    if (strcmp(argv[argi],"-fullscreen")==0) fullscreen=true;
++    else if (strcmp(argv[argi],"-window")==0) fullscreen=false;
++  }
++
+   char *bindirname  = dirname(argv[0]);
+   if (!strcmp(bindirname,"."))
+     dirprefix="/usr/share/games/stormbaancoureur";
+@@ -737,7 +744,7 @@
+   glutSpecialFunc (special);
+   glutSpecialUpFunc (specialUp);
+   glutIdleFunc (idle);
+-  glutFullScreen();
++  if (fullscreen) glutFullScreen();
+ 
+   ssgInit();
+ 

Modified: packages/trunk/stormbaancoureur/debian/patches/series
===================================================================
--- packages/trunk/stormbaancoureur/debian/patches/series	2007-08-15 16:37:05 UTC (rev 3695)
+++ packages/trunk/stormbaancoureur/debian/patches/series	2007-08-15 16:47:08 UTC (rev 3696)
@@ -1 +1,2 @@
 makefile_libode.patch
+fullscreen_optional.patch




More information about the Pkg-games-commits mailing list