From d10d9c669064088c75c285797c922ce20ea2338a Mon Sep 17 00:00:00 2001 From: yabause Date: Wed, 7 Jan 2009 23:06:13 +0000 Subject: [PATCH] Removed dependency on gdkglext as we already have one on gtkglext. --- desmume/configure.ac | 3 --- desmume/src/gtk-glade/callbacks_IO.cpp | 6 +++--- desmume/src/gtk-glade/gdk_gl.h | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index 4847cf372..aed70e013 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -108,9 +108,6 @@ AC_PROVIDE_IFELSE([PKG_PROG_PKG_CONFIG], [ AC_SUBST(GTHREAD_CFLAGS) AC_SUBST(GTHREAD_LIBS) - - AC_CHECK_LIB(gdkglext-x11-1.0, gdk_gl_init) - PKG_CHECK_MODULES(LIBGLADE, "libglade-2.0", HAVE_LIBGLADE=yes, diff --git a/desmume/src/gtk-glade/callbacks_IO.cpp b/desmume/src/gtk-glade/callbacks_IO.cpp index cd473f5dd..bbaba471e 100755 --- a/desmume/src/gtk-glade/callbacks_IO.cpp +++ b/desmume/src/gtk-glade/callbacks_IO.cpp @@ -76,7 +76,7 @@ void black_screen () { memset(on_screen_image32,0,screen_size()); } -#ifndef HAVE_LIBGDKGLEXT_X11_1_0 +#ifndef GTKGLEXT_AVAILABLE // they are empty if no opengl // else see gdk_gl.c / gdk_gl.h BOOL my_gl_Begin (int screen) { return FALSE; } @@ -163,7 +163,7 @@ gboolean screen (GtkWidget * widget, int off) { GDK_RGB_DITHER_NONE,((guchar*)on_screen_image32)+off,L); return TRUE; } -#endif /* if HAVE_LIBGDKGLEXT_X11_1_0 */ +#endif /* if GTKGLEXT_AVAILABLE */ /* OUTPUT SCREENS */ @@ -183,7 +183,7 @@ gboolean on_wDrawScreen_configure_event(GtkWidget *widget, GdkEventConfigure *e /* ***** ***** INPUT STYLUS / MOUSE ***** ***** */ static void resize_incremental(int i, GdkEventScroll *event) { -#ifdef HAVE_LIBGDKGLEXT_X11_1_0 +#ifdef GTKGLEXT_AVAILABLE float zoom_inc=.125, zoom_min=0.25, zoom_max=5.0; #else float zoom_inc=1.0, zoom_min=1.0, zoom_max=3.0; diff --git a/desmume/src/gtk-glade/gdk_gl.h b/desmume/src/gtk-glade/gdk_gl.h index 06d3f44ce..b88aef93c 100755 --- a/desmume/src/gtk-glade/gdk_gl.h +++ b/desmume/src/gtk-glade/gdk_gl.h @@ -23,8 +23,7 @@ #define __GDKGL_H__ #include "globals.h" -// comment for GL :D -//#undef HAVE_LIBGDKGLEXT_X11_1_0 + #ifdef GTKGLEXT_AVAILABLE #include #include