r8728 - in packages/trunk/lincity-ng/debian: . patches

Gonéri Le Bouder goneri at alioth.debian.org
Tue Feb 3 21:42:12 UTC 2009


Author: goneri
Date: 2009-02-03 21:42:12 +0000 (Tue, 03 Feb 2009)
New Revision: 8728

Added:
   packages/trunk/lincity-ng/debian/patches/failback-to-800x600.diff
Modified:
   packages/trunk/lincity-ng/debian/changelog
   packages/trunk/lincity-ng/debian/patches/series
Log:
* Add failback-to-800x600.diff to be able to launch the game
  even if the screen doesn't accept 1024x768


Modified: packages/trunk/lincity-ng/debian/changelog
===================================================================
--- packages/trunk/lincity-ng/debian/changelog	2009-02-03 20:56:02 UTC (rev 8727)
+++ packages/trunk/lincity-ng/debian/changelog	2009-02-03 21:42:12 UTC (rev 8728)
@@ -3,6 +3,8 @@
   * New upstream release 
   * Update debian/copyright
   * Standard version: 3.8.0, no change 
+  * Add failback-to-800x600.diff to be able to launch the game
+    even if the screen doesn't accept 1024x768
 
  -- Gonéri Le Bouder <goneri at rulezlan.org>  Tue, 03 Feb 2009 21:20:45 +0100
 

Added: packages/trunk/lincity-ng/debian/patches/failback-to-800x600.diff
===================================================================
--- packages/trunk/lincity-ng/debian/patches/failback-to-800x600.diff	                        (rev 0)
+++ packages/trunk/lincity-ng/debian/patches/failback-to-800x600.diff	2009-02-03 21:42:12 UTC (rev 8728)
@@ -0,0 +1,19 @@
+diff --git a/src/lincity-ng/main.cpp b/src/lincity-ng/main.cpp
+index b6a1d1b..549c7a4 100644
+--- a/src/lincity-ng/main.cpp
++++ b/src/lincity-ng/main.cpp
+@@ -217,6 +217,14 @@ void initVideo(int width, int height)
+     SDL_Surface* screen
+         = SDL_SetVideoMode(width, height, bpp, flags);
+     SDL_WM_SetCaption(PACKAGE_NAME " " PACKAGE_VERSION, 0);
++
++    if(!screen) {
++        // Debian: Try harder to get a working screen
++        // The default 1024x768 is to large for most of the
++        // netBook computer.
++        screen = SDL_SetVideoMode(800, 600, bpp, flags);
++    }
++
+     if(!screen) {
+         std::stringstream msg;
+         msg << "Couldn't set video mode ("

Modified: packages/trunk/lincity-ng/debian/patches/series
===================================================================
--- packages/trunk/lincity-ng/debian/patches/series	2009-02-03 20:56:02 UTC (rev 8727)
+++ packages/trunk/lincity-ng/debian/patches/series	2009-02-03 21:42:12 UTC (rev 8728)
@@ -0,0 +1 @@
+failback-to-800x600.diff




More information about the Pkg-games-commits mailing list