r1983 - in packages/trunk/wormux/debian: . patches

Eddy Petrisor eddyp-guest at alioth.debian.org
Tue Nov 14 15:02:34 CET 2006


Author: eddyp-guest
Date: 2006-11-14 15:02:32 +0100 (Tue, 14 Nov 2006)
New Revision: 1983

Modified:
   packages/trunk/wormux/debian/changelog
   packages/trunk/wormux/debian/patches/001_dont_crash_if_default_resolution_is_unavailable_just-for-0.7.4.patch
Log:
* no more redundant resolutions in the resolution list
* the current resolution is marked by "*" since it doesn't need translation
* unfortunately the current resolution is always at the top, not ordered


Modified: packages/trunk/wormux/debian/changelog
===================================================================
--- packages/trunk/wormux/debian/changelog	2006-11-13 20:21:34 UTC (rev 1982)
+++ packages/trunk/wormux/debian/changelog	2006-11-14 14:02:32 UTC (rev 1983)
@@ -8,9 +8,9 @@
   * added patchutils as a build dependency since we need patches
   * wrote my name with the correct diacritic in control file
   * doesn't crash if default resolution is unavailable, thanks
-    Hanna Ollila (Closes: #395217)
+    Hanna Ollila for the initial patch (Closes: #395217)
 
- -- Eddy Petrișor <eddy.petrisor at gmail.com>  Mon, 13 Nov 2006 18:48:03 +0200
+ -- Eddy Petrișor <eddy.petrisor at gmail.com>  Mon, 13 Nov 2006 23:59:18 +0200
 
 wormux (0.7.4-1) unstable; urgency=low
 

Modified: packages/trunk/wormux/debian/patches/001_dont_crash_if_default_resolution_is_unavailable_just-for-0.7.4.patch
===================================================================
--- packages/trunk/wormux/debian/patches/001_dont_crash_if_default_resolution_is_unavailable_just-for-0.7.4.patch	2006-11-13 20:21:34 UTC (rev 1982)
+++ packages/trunk/wormux/debian/patches/001_dont_crash_if_default_resolution_is_unavailable_just-for-0.7.4.patch	2006-11-14 14:02:32 UTC (rev 1983)
@@ -1,18 +1,19 @@
 --- wormux-0.7.4/src/menu/options_menu.cpp	2006-08-16 00:29:30.000000000 +0300
 +++ wormux-0.7.4-new/src/menu/options_menu.cpp	2006-11-12 16:31:07.000000000 +0200
-@@ -132,20 +132,17 @@
+@@ -132,20 +132,18 @@
    /* Check is there are any modes available */
    AppWormux * app = AppWormux::GetInstance();
  
 -  if(modes == (SDL_Rect **)0){
 +  std::ostringstream ss,ss2;
 +  ss << app->video.window.GetWidth() << "x" << app->video.window.GetHeight();
-+  ss2 << "Current ("<< app->video.window.GetWidth() << "x" << app->video.window.GetHeight() << ")";
++  ss2 << app->video.window.GetWidth() << "x" << app->video.window.GetHeight() << " *";
 +  lbox_video_mode->AddItem(true, ss2.str(), ss.str());
-+  
-+  lbox_video_mode->AddItem(false, "Minimum (800x600)", "800x600");
++
 +  for(int i=0;modes[i];++i) {
 +    if (modes[i]->w < 800 || modes[i]->h < 600) continue;
++    if (modes[i]->w == app->video.window.GetWidth() &&
++        modes[i]->h == app->video.window.GetHeight()) continue;
      std::ostringstream ss;
 -    ss << app->video.window.GetWidth() << "x" << app->video.window.GetHeight();
 -    lbox_video_mode->AddItem(false, "No modes available!", ss.str());




More information about the Pkg-games-commits mailing list