From a246752a2aedf005e1f6df9c8c7c64dd208cb834 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 1 Mar 2012 10:09:27 +1100 Subject: Remove duplicated code. Bug #3494492. From Marko Njezic. --- win32/PlatWin.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index bf49c4d71..61e8b34d5 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1398,7 +1398,6 @@ void SurfaceD2D::Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired void SurfaceD2D::RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) { if (pRenderTarget) { - D2DPenColour(back); D2D1_RECT_F rectangle1 = D2D1::RectF(RoundFloat(rc.left) + 0.5, rc.top+0.5, RoundFloat(rc.right) - 0.5, rc.bottom-0.5); D2DPenColour(back); pRenderTarget->FillRectangle(&rectangle1, pBrush); -- cgit v1.2.3