fix try-color on monochrome bitmap

svn: r6962
This commit is contained in:
Matthew Flatt 2007-07-25 18:18:26 +00:00
parent c75e5f28c4
commit c2f2f715ac

View File

@ -2020,7 +2020,7 @@ void wxWindowDC::TryColour(wxColour *src, wxColour *dest)
wxQueryColor(wxAPP_DISPLAY, cm, &xcol);
dest->Set(xcol.red >> SHIFT, xcol.green >> SHIFT, xcol.blue >> SHIFT);
} else if (xcol.pixel == wx_black_pixel) {
} else if (xcol.pixel == 1) { /* not wx_black_pixel */
dest->Set(0, 0, 0);
} else {
dest->Set(255, 255, 255);