From ab5b20104e5589f0c47b4e1c59f56aae8ba1f763 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 28 Feb 2007 22:00:03 +0000 Subject: If AlphaBlend not available draw outlines rather than filled rectangles as that is more readable. --- win32/PlatWin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 110f26421..b363fbda9 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -633,7 +633,9 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourAllocated ::DeleteObject(hbmMem); ::DeleteObject(hMemDC); } else { - RectangleDraw(rc, outline, fill); + BrushColor(outline); + RECT rcw = RectFromPRectangle(rc); + FrameRect(hdc, &rcw, brush); } } -- cgit v1.2.3