mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
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).
This commit is contained in:
30
media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch
Normal file
30
media-libs/libsdl/patches/sdl-1.2-svn-trunk.patch
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user