From 45333513d37d6c4e8c56f4f62da4df57a3b611f7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 5 Nov 2011 19:57:03 +1100 Subject: Fix failure to draw Polygons. Bug #3433558. Was interpreting floating point values as integers. --- win32/PlatWin.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 01c36199b..c6d8df771 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -683,7 +683,12 @@ void SurfaceGDI::LineTo(int x_, int y_) { void SurfaceGDI::Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back) { PenColour(fore); BrushColor(back); - ::Polygon(hdc, reinterpret_cast(pts), npts); + std::vector outline; + for (int i=0;i