Changed a few true -> TRUE
added #ifdef GTK 1.2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -367,14 +367,17 @@ bool wxApp::OnInitGui()
|
||||
}
|
||||
else
|
||||
{
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
/* assume 8-bit true or static colors. this really
|
||||
exists. */
|
||||
GdkVisual* vis = gdk_colormap_get_visual( cmap );
|
||||
index = (r >> (5 - vis->red_prec)) << vis->red_shift;
|
||||
index |= (g >> (5 - vis->green_prec)) << vis->green_shift;
|
||||
index |= (b >> (5 - vis->blue_prec)) << vis->blue_shift;
|
||||
#else
|
||||
wxFAIL_MSG( _T("Unsupported graphics hardware") );
|
||||
#endif
|
||||
}
|
||||
|
||||
m_colorCube[ (r*1024) + (g*32) + b ] = index;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user