r3366 - in packages/trunk/ultrastar-ng/debian: . patches

Miriam Ruiz baby-guest at alioth.debian.org
Thu Jul 12 11:03:01 UTC 2007


Author: baby-guest
Date: 2007-07-12 11:03:01 +0000 (Thu, 12 Jul 2007)
New Revision: 3366

Added:
   packages/trunk/ultrastar-ng/debian/patches/check_sdl_init.patch
Modified:
   packages/trunk/ultrastar-ng/debian/changelog
   packages/trunk/ultrastar-ng/debian/patches/series
Log:
Added patch to check that SDL is properly initialized (Closes: #427386)



Modified: packages/trunk/ultrastar-ng/debian/changelog
===================================================================
--- packages/trunk/ultrastar-ng/debian/changelog	2007-07-12 10:14:04 UTC (rev 3365)
+++ packages/trunk/ultrastar-ng/debian/changelog	2007-07-12 11:03:01 UTC (rev 3366)
@@ -2,6 +2,7 @@
 
   [ Miriam Ruiz ]
   * Added patch to support previewing ogg files with xine (Closes: #430531)
+  * Added patch to check that SDL is properly initialized (Closes: #427386)
 
   [ Jon Dowland ]
   * update menu section to "Games/Action" for menu policy transition.

Added: packages/trunk/ultrastar-ng/debian/patches/check_sdl_init.patch
===================================================================
--- packages/trunk/ultrastar-ng/debian/patches/check_sdl_init.patch	                        (rev 0)
+++ packages/trunk/ultrastar-ng/debian/patches/check_sdl_init.patch	2007-07-12 11:03:01 UTC (rev 3366)
@@ -0,0 +1,20 @@
+# Checks that the SDL screen has been properly initialized, or exits with an error
+
+# http://ultrastar-ng.cvs.sourceforge.net/ultrastar-ng/UltraStar-ng/src/main.cpp?r1=1.38&r2=1.39
+# See http://bugs.debian.org/427386
+
+--- ultrastar-ng-0.1.4.orig/src/main.cpp
++++ ultrastar-ng-0.1.4/src/main.cpp
+@@ -48,6 +48,12 @@
+ 
+ 	screenSDL = videoDriver->init( width, height, fullscreen );
+ 
++	if( screenSDL == NULL ) {
++		fprintf(stderr,"Cannot initialize screen\n");
++		SDL_Quit();
++		exit(EXIT_FAILURE);
++	}
++
+ 	SDL_ShowCursor(SDL_DISABLE);
+ 	SDL_EnableUNICODE(SDL_ENABLE);
+ 	SDL_EnableKeyRepeat(125, 125);

Modified: packages/trunk/ultrastar-ng/debian/patches/series
===================================================================
--- packages/trunk/ultrastar-ng/debian/patches/series	2007-07-12 10:14:04 UTC (rev 3365)
+++ packages/trunk/ultrastar-ng/debian/patches/series	2007-07-12 11:03:01 UTC (rev 3366)
@@ -1,2 +1,3 @@
 exclude_docs.patch
 xine_ogg.patch
+check_sdl_init.patch




More information about the Pkg-games-commits mailing list