use high order bytes of RGB values in RGBColor to construct wxColour, not the lower order ones (patch 1662064)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-10 15:51:19 +00:00
parent 7d2aa90eae
commit 34889e01f2

View File

@@ -379,7 +379,7 @@ wxRendererMac::DrawItemSelectionRect(wxWindow *win,
GetThemeBrushAsColor(kThemeBrushSecondaryHighlightColor, 32, true, &selColor);
}
wxBrush selBrush = wxBrush( wxColour( selColor.red, selColor.green, selColor.blue ), wxSOLID );
wxBrush selBrush = wxBrush( wxColour( selColor.red >> 8, selColor.green >> 8, selColor.blue >> 8 ), wxSOLID );
dc.SetPen( *wxTRANSPARENT_PEN );
dc.SetBrush( selBrush );