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
This commit is contained in:
Ryan Norton 2004-10-12 14:10:06 +00:00
parent 926f877be5
commit 645a8fabef
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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 );