From: Ryan Norton Date: Tue, 12 Oct 2004 14:10:06 +0000 (+0000) Subject: patch from list to fix warning and get rid of unneccessary call X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/645a8fabef258b730261c2e85e32cf072d8a796f patch from list to fix warning and get rid of unneccessary call git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 1556694fe8..e5f769403b 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -322,7 +322,7 @@ bool wxGLCanvas::Create( wxWindow *parent, wxCHECK_MSG( m_vi, FALSE, _T("required visual couldn't be found") ); GdkVisual *visual = gdkx_visual_get( vi->visualid ); - GdkColormap *colormap = gdk_colormap_new( gdkx_visual_get(vi->visualid), TRUE ); + GdkColormap *colormap = gdk_colormap_new( visual, TRUE ); gtk_widget_push_colormap( colormap ); gtk_widget_push_visual( visual ); diff --git a/src/gtk1/glcanvas.cpp b/src/gtk1/glcanvas.cpp index 1556694fe8..e5f769403b 100644 --- a/src/gtk1/glcanvas.cpp +++ b/src/gtk1/glcanvas.cpp @@ -322,7 +322,7 @@ bool wxGLCanvas::Create( wxWindow *parent, wxCHECK_MSG( m_vi, FALSE, _T("required visual couldn't be found") ); GdkVisual *visual = gdkx_visual_get( vi->visualid ); - GdkColormap *colormap = gdk_colormap_new( gdkx_visual_get(vi->visualid), TRUE ); + GdkColormap *colormap = gdk_colormap_new( visual, TRUE ); gtk_widget_push_colormap( colormap ); gtk_widget_push_visual( visual );