From 0b282594a85900c0102fd1e26e1aea52291c227a Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Mon, 1 Feb 2010 16:19:06 +0000 Subject: [PATCH] Patch from Gerasim Troeglazov to fix an issue with a false initialized BApplication when an attempt is make to create a second copy BApplication (first QtApp - the second in the SDL). --- .../libsdl/patches/sdl-1.2-svn-trunk.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch diff --git a/media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch b/media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch new file mode 100644 index 000000000..9a197822a --- /dev/null +++ b/media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch @@ -0,0 +1,30 @@ +Index: src/main/beos/SDL_BeApp.cc +=================================================================== +--- src/main/beos/SDL_BeApp.cc (revision 5545) ++++ src/main/beos/SDL_BeApp.cc (working copy) +@@ -39,13 +39,15 @@ + + static int StartBeApp(void *unused) + { ++ if(!be_app) { + BApplication *App; + + App = new BApplication("application/x-SDL-executable"); + + App->Run(); + delete App; +- return(0); ++ } ++ return(0); + } + + /* Initialize the Be Application, if it's not already started */ +@@ -86,7 +88,7 @@ + ++SDL_BeAppActive; + + /* The app is running, and we're ready to go */ +- return(0); ++ return(0); + } + + /* Quit the Be Application, if there's nothing left to do */