Index: PickCategoryLine.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/PickCategoryLine.cc,v retrieving revision 2.8 diff -u -p -r2.8 PickCategoryLine.cc --- PickCategoryLine.cc 21 May 2005 23:04:02 -0000 2.8 +++ PickCategoryLine.cc 8 Sep 2005 03:09:57 -0000 @@ -31,6 +31,7 @@ PickCategoryLine::empty (void) void PickCategoryLine::paint (HDC hdc, HRGN hUpdRgn, int x, int y, int row, int show_cat) { + int bkMode = SetBkMode(hdc, TRANSPARENT); int r = y + row * theView.row_height; if (show_label) { @@ -40,7 +41,7 @@ PickCategoryLine::paint (HDC hdc, HRGN h // draw the '+' or '-' box SelectObject (theView.bitmap_dc, (collapsed ? theView.bm_treeplus : theView.bm_treeminus)); - BitBlt (hdc, x2, by, 11, 11, theView.bitmap_dc, 0, 0, SRCCOPY); + BitBlt (hdc, x2, by, 11, 11, theView.bitmap_dc, 0, 0, SRCAND); // draw the category name TextOut (hdc, x2 + 11 + ICON_MARGIN, r, cat.first.c_str(), cat.first.size()); @@ -54,7 +55,7 @@ PickCategoryLine::paint (HDC hdc, HRGN h // draw the 'spin' glyph SelectObject (theView.bitmap_dc, theView.bm_spin); spin_x = x2 + 11 + ICON_MARGIN + labellength + ICON_MARGIN; - BitBlt (hdc, spin_x, by, 11, 11, theView.bitmap_dc, 0, 0, SRCCOPY); + BitBlt (hdc, spin_x, by, 11, 11, theView.bitmap_dc, 0, 0, SRCAND); // draw the caption ('Default', 'Install', etc) TextOut (hdc, spin_x + SPIN_WIDTH + ICON_MARGIN, r, @@ -104,6 +105,7 @@ PickCategoryLine::paint (HDC hdc, HRGN h SelectClipRgn (hdc, hUpdRgn); } } + SetBkMode(hdc, bkMode); } int Index: PickPackageLine.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/PickPackageLine.cc,v retrieving revision 2.18 diff -u -p -r2.18 PickPackageLine.cc --- PickPackageLine.cc 1 Sep 2005 15:49:58 -0000 2.18 +++ PickPackageLine.cc 8 Sep 2005 03:09:57 -0000 @@ -22,12 +22,13 @@ void PickPackageLine::DrawIcon (HDC hdc, int x, int y, HANDLE hIcon) { SelectObject (theView.bitmap_dc, hIcon); - BitBlt (hdc, x, y, 11, 11, theView.bitmap_dc, 0, 0, SRCCOPY); + BitBlt (hdc, x, y, 11, 11, theView.bitmap_dc, 0, 0, SRCAND); } void PickPackageLine::paint (HDC hdc, HRGN unused, int x, int y, int col_num, int show_cat) { + int bkMode = SetBkMode(hdc, TRANSPARENT); int rb = y + theView.tm.tmHeight; int by = rb - 11; // top of box images String s; @@ -124,6 +125,8 @@ PickPackageLine::paint (HDC hdc, HRGN un s += String(": ") + pkg.SDesc (); TextOut (hdc, x + HMARGIN / 2, y, s.c_str(), s.size()); } + + SetBkMode(hdc, bkMode); } int