From 7e007cd06dbde9e35fe229c9e72ab930de54e58d Mon Sep 17 00:00:00 2001 From: Eugene Gagulin Date: Wed, 25 Dec 2019 17:33:17 +0300 Subject: [PATCH] Fix for Windows. --- src/ui/win/win_ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/win/win_ui.cpp b/src/ui/win/win_ui.cpp index c4b561ce4..6fba285c1 100644 --- a/src/ui/win/win_ui.cpp +++ b/src/ui/win/win_ui.cpp @@ -67,7 +67,7 @@ namespace WindowsUi DeleteObject( hPen ); } - for ( std::vector < UiWindowWin::EllipseToDraw >::const_iterator ellipse = _window->_ellipse.cbegin(); ellipse != _window->_ellipse.cend(); ++ellipse ) { + for ( std::vector::const_iterator ellipse = _window->_ellipses.cbegin(); ellipse != _window->_ellipses.cend(); ++ellipse ) { const int left = static_cast( ellipse->topLeft.x * xFactor ); const int top = static_cast( ellipse->topLeft.y * yFactor ); const int right = static_cast( ( ellipse->topLeft.x + width ) * xFactor ); @@ -277,7 +277,7 @@ void UiWindowWin::drawLine( const Point2d & start, const Point2d & end, const Pa void UiWindowWin::drawEllipse( const Point2d & center, double xRadius, double yRadius, const PaintColor & color ) { const Point topLeft( center.x - xRadius, center.y - yRadius ); - _ellipse.emplace_back( topLeft, xRadius * 2, yRadius * 2, color ); + _ellipses.emplace_back( topLeft, xRadius * 2, yRadius * 2, color ); _display(); }