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:
parent
926f877be5
commit
645a8fabef
@ -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 );
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user