Merged 1397 into release branch to fix

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455749
This commit is contained in:
yabause 2009-01-05 22:25:07 +00:00
parent 9a0a853ab0
commit 3206129d97
6 changed files with 8 additions and 8 deletions

View File

@ -154,11 +154,11 @@ initialise_gdk_3d( void) {
}
int
init_opengl_gdk_3Demu( void) {
init_opengl_gdk_3Demu( GdkDrawable * drawable) {
GdkGLConfig *glconfig;
/* create the off screen pixmap */
target_pixmap = gdk_pixmap_new ( NULL, 256, 192, 24);
target_pixmap = gdk_pixmap_new ( drawable, 256, 192, -1);
if ( target_pixmap == NULL) {
g_print (_("*** Failed to create pixmap.\n"));

View File

@ -27,6 +27,6 @@
*/
int
init_opengl_gdk_3Demu( void);
init_opengl_gdk_3Demu( GdkDrawable * drawable);
#endif

View File

@ -497,7 +497,7 @@ common_gtk_glade_main( struct configured_features *my_config) {
#ifdef GTKGLEXT_AVAILABLE
if ( !use_null_3d) {
/* setup the gdk 3D emulation */
if ( init_opengl_gdk_3Demu()) {
if ( init_opengl_gdk_3Demu(GDK_DRAWABLE(pWindow->window))) {
NDS_3D_SetDriver(1);
if (!gpu3D->NDS_3D_Init()) {

View File

@ -151,11 +151,11 @@ _oglrender_init( void) {
}
int
init_opengl_gdk_3Demu( void) {
init_opengl_gdk_3Demu( GdkDrawable * drawable) {
GdkGLConfig *glconfig;
/* create the off screen pixmap */
target_pixmap = gdk_pixmap_new ( NULL, 256, 192, 24);
target_pixmap = gdk_pixmap_new ( drawable, 256, 192, -1);
if ( target_pixmap == NULL) {
g_print ("*** Failed to create pixmap.\n");

View File

@ -27,6 +27,6 @@
*/
int
init_opengl_gdk_3Demu( void);
init_opengl_gdk_3Demu( GdkDrawable * drawable);
#endif

View File

@ -1878,7 +1878,7 @@ common_gtk_main( struct configured_features *my_config)
#ifdef GTKGLEXT_AVAILABLE
if ( !use_null_3d) {
/* setup the gdk 3D emulation */
if ( init_opengl_gdk_3Demu()) {
if ( init_opengl_gdk_3Demu(GDK_DRAWABLE(pWindow->window))) {
NDS_3D_SetDriver ( 1);
if (!gpu3D->NDS_3D_Init ()) {