Skip to content

Commit

Permalink
Fix for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
fullset committed Dec 25, 2019
1 parent 28d23af commit 7e007cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/win/win_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<UiWindowWin::EllipseToDraw>::const_iterator ellipse = _window->_ellipses.cbegin(); ellipse != _window->_ellipses.cend(); ++ellipse ) {
const int left = static_cast<int>( ellipse->topLeft.x * xFactor );
const int top = static_cast<int>( ellipse->topLeft.y * yFactor );
const int right = static_cast<int>( ( ellipse->topLeft.x + width ) * xFactor );
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 7e007cd

Please sign in to comment.