mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Added TEST section to libsdl bep file. Added patch from Urias McCullough that fixes BGLView
This commit is contained in:
@@ -25,5 +25,77 @@ INSTALL {
|
||||
cd libsdl-1.2-hg
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd libsdl-1.2-hg/test
|
||||
autogen.sh
|
||||
./configure
|
||||
make
|
||||
echo testvidoinfo
|
||||
testvidinfo
|
||||
echo testgl
|
||||
testgl
|
||||
echo testwm
|
||||
testwm
|
||||
echo testhread
|
||||
testhread
|
||||
echo testsprite
|
||||
testsprite
|
||||
echo testdyngl
|
||||
testdyngl
|
||||
echo testoverlay
|
||||
testoverlay
|
||||
echo testoverlay2
|
||||
testoverlay2
|
||||
echo threadwin
|
||||
threadwin
|
||||
echo testalpha
|
||||
testalpha
|
||||
echo testiconv
|
||||
testiconv
|
||||
echo testtimer
|
||||
testtimer
|
||||
echo graywin
|
||||
graywin
|
||||
echo testerror
|
||||
testerror
|
||||
echo torturethread
|
||||
torturethread
|
||||
echo testbitmap
|
||||
testbitmap
|
||||
echo testjoystick
|
||||
testjoystick
|
||||
echo testver
|
||||
testver
|
||||
echo testfile
|
||||
testfile
|
||||
echo testpalette
|
||||
testpalette
|
||||
echo loopwave
|
||||
loopwave
|
||||
echo testblitspeed
|
||||
testblitspeed
|
||||
echo testkeys
|
||||
testkeys
|
||||
echo testcursor
|
||||
testcursor
|
||||
echo checkkeys
|
||||
checkkeys
|
||||
echo testgamma
|
||||
testgamma
|
||||
echo testplatform
|
||||
testplatform
|
||||
echo testcdrom
|
||||
testcdrom
|
||||
echo testloadso
|
||||
testloadso
|
||||
echo testwim
|
||||
testwin
|
||||
echo testsem
|
||||
testsem
|
||||
echo testlock
|
||||
testlock
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="1997-2010 Sam Lantinga"
|
||||
|
||||
@@ -1,6 +1,43 @@
|
||||
diff -NaurbE libsdl-1.2-hg/src/video/bwindow/SDL_sysevents.cc libsdl-1.2-hg-gci/src/video/bwindow/SDL_sysevents.cc
|
||||
--- libsdl-1.2-hg/src/video/bwindow/SDL_sysevents.cc 2010-12-06 18:12:49.755761152 +0100
|
||||
+++ libsdl-1.2-hg-gci/src/video/bwindow/SDL_sysevents.cc 2010-12-06 18:10:31.250871808 +0100
|
||||
diff -r 930614179450 src/video/bwindow/SDL_BWin.h
|
||||
--- a/src/video/bwindow/SDL_BWin.h Fri Dec 03 16:55:25 2010 -0800
|
||||
+++ b/src/video/bwindow/SDL_BWin.h Thu Dec 23 09:38:48 2010 +0000
|
||||
@@ -113,7 +113,9 @@
|
||||
SDL_GLView = new BGLView(Bounds(), "SDL GLView",
|
||||
B_FOLLOW_ALL_SIDES, (B_WILL_DRAW|B_FRAME_EVENTS),
|
||||
gl_flags);
|
||||
- SDL_GLView->EnableDirectMode(true);
|
||||
+ //TODO: Figure out why directmode isn't working
|
||||
+ //SDL_GLView->EnableDirectMode(true);
|
||||
+ SDL_GLView->EnableDirectMode(false);
|
||||
}
|
||||
if ( the_view != SDL_GLView ) {
|
||||
if ( the_view ) {
|
||||
@@ -133,17 +135,17 @@
|
||||
}
|
||||
if ( the_view != SDL_View ) {
|
||||
if ( the_view ) {
|
||||
-#if SDL_VIDEO_OPENGL
|
||||
- if ( the_view == SDL_GLView ) {
|
||||
- SDL_GLView->UnlockGL();
|
||||
- }
|
||||
-#endif
|
||||
RemoveChild(the_view);
|
||||
}
|
||||
AddChild(SDL_View);
|
||||
the_view = SDL_View;
|
||||
}
|
||||
}
|
||||
+#if SDL_VIDEO_OPENGL
|
||||
+ if ( the_view == SDL_GLView ) {
|
||||
+ SDL_GLView->UnlockGL();
|
||||
+ }
|
||||
+#endif
|
||||
Unlock();
|
||||
return(retval);
|
||||
}
|
||||
diff -r 930614179450 src/video/bwindow/SDL_sysevents.cc
|
||||
--- a/src/video/bwindow/SDL_sysevents.cc Fri Dec 03 16:55:25 2010 -0800
|
||||
+++ b/src/video/bwindow/SDL_sysevents.cc Thu Dec 23 09:38:48 2010 +0000
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "../../events/SDL_sysevents.h"
|
||||
#include "../../events/SDL_events_c.h"
|
||||
|
||||
Reference in New Issue
Block a user