[commit] r1961 - trunk/GME/GMEActiveBrowser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Sat Jul 7 16:40:18 CDT 2012
Author: ksmyth
Date: Sat Jul 7 16:40:18 2012
New Revision: 1961
Log:
Draw white background behind treeIcon, to occlude original icon
Modified:
trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp
Modified: trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp
==============================================================================
--- trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp Sat Jul 7 16:40:09 2012 (r1960)
+++ trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp Sat Jul 7 16:40:18 2012 (r1961)
@@ -1450,6 +1450,10 @@
Gdiplus::Graphics plus(*dc);
// FIXME: fix for high DPI
Gdiplus::Rect dst(rItem.left, rItem.top, 16, 16);
+ // FIXME: fix background color
+ Gdiplus::Color white(Gdiplus::Color::White);
+ Gdiplus::SolidBrush whiteBrush(white);
+ plus.FillRectangle(&whiteBrush, dst);
bool expanded = GetItemState(hItem, TVIS_EXPANDED) & TVIS_EXPANDED;
std::shared_ptr<Gdiplus::Bitmap>& icon = (expanded && MgaObjectProxyItem.expandedTreeIcon) ? MgaObjectProxyItem.expandedTreeIcon : MgaObjectProxyItem.treeIcon;
plus.DrawImage(icon.get(), dst, 0, 0, 16, 16, Gdiplus::UnitPixel);
More information about the gme-commit
mailing list