Using the best visual is now an option.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -250,6 +250,8 @@ wxApp::wxApp()
|
||||
#endif
|
||||
|
||||
m_colorCube = (unsigned char*) NULL;
|
||||
|
||||
m_useBestVisual = FALSE;
|
||||
}
|
||||
|
||||
wxApp::~wxApp()
|
||||
@@ -271,7 +273,8 @@ bool wxApp::OnInitGui()
|
||||
we make sure we get the best. this can sometimes be wasteful,
|
||||
of course, but what do these guys pay $30.000 for? */
|
||||
|
||||
if (gdk_visual_get_best() != gdk_visual_get_system())
|
||||
if ((gdk_visual_get_best() != gdk_visual_get_system()) &&
|
||||
(m_useBestVisual))
|
||||
{
|
||||
GdkVisual* vis = gdk_visual_get_best();
|
||||
gtk_widget_set_default_visual( vis );
|
||||
|
Reference in New Issue
Block a user