[Python-apps-commits] r1606 - in packages/lightyears/trunk/debian (2 files)
rainct-guest at users.alioth.debian.org
rainct-guest at users.alioth.debian.org
Tue Jul 22 13:58:50 UTC 2008
Date: Tuesday, July 22, 2008 @ 13:58:48
Author: rainct-guest
Revision: 1606
Fix Ubuntu bug #219512.
Added:
packages/lightyears/trunk/debian/patches/only_show_valid_resolutions.patch
Modified:
packages/lightyears/trunk/debian/changelog
Modified: packages/lightyears/trunk/debian/changelog
===================================================================
--- packages/lightyears/trunk/debian/changelog 2008-07-22 13:17:41 UTC (rev 1605)
+++ packages/lightyears/trunk/debian/changelog 2008-07-22 13:58:48 UTC (rev 1606)
@@ -9,6 +9,8 @@
- Change the download location to the new one.
* debian/menu:
- Change the formatting.
+ * debian/patches/only_show_valid_resolutions.patch:
+ - Only show resolutions supported by the system in the menu.
[ Sandro Tosi ]
* debian/watch:
Added: packages/lightyears/trunk/debian/patches/only_show_valid_resolutions.patch
===================================================================
--- packages/lightyears/trunk/debian/patches/only_show_valid_resolutions.patch (rev 0)
+++ packages/lightyears/trunk/debian/patches/only_show_valid_resolutions.patch 2008-07-22 13:58:48 UTC (rev 1606)
@@ -0,0 +1,15 @@
+diff -Nur -x '*.orig' -x '*~' lightyears-1.3a/code/main.py lightyears-1.3a.new/code/main.py
+--- lightyears-1.3a/code/main.py 2008-07-22 15:35:59.000000000 +0200
++++ lightyears-1.3a.new/code/main.py 2008-07-22 15:54:07.000000000 +0200
+@@ -41,6 +41,11 @@
+ pygame.init()
+ pygame.font.init()
+
++ # Ensure that all resolutions are supported by the system
++ for resolution in RESOLUTIONS:
++ if resolution[:2] not in pygame.display.list_modes():
++ RESOLUTIONS.remove(resolution)
++
+ if ( no_sound ):
+ resource.No_Sound()
+ else:
More information about the Python-apps-commits
mailing list