diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-12 21:32:57 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-12 21:32:57 (GMT) |
| commit | 8ca27520a437bf33fb374d5a88731605cd3739e7 (patch) | |
| tree | f081511e0f26946016529382c68000d3c6ea5a3a /src/interface/SaveButton.cpp | |
| parent | ca7c0e7370542a97dd03210e13ec2c56679d5ca4 (diff) | |
| download | powder-8ca27520a437bf33fb374d5a88731605cd3739e7.zip powder-8ca27520a437bf33fb374d5a88731605cd3739e7.tar.gz | |
Use forward declarations more to avoid excessive includes
Diffstat (limited to 'src/interface/SaveButton.cpp')
| -rw-r--r-- | src/interface/SaveButton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/SaveButton.cpp b/src/interface/SaveButton.cpp index 18e382d..cc90a2f 100644 --- a/src/interface/SaveButton.cpp +++ b/src/interface/SaveButton.cpp @@ -222,7 +222,7 @@ void SaveButton::Draw(const Point& screenPos) g->drawrect(screenPos.X-3+(Size.X-thumbBoxSize.X)/2, screenPos.Y+(Size.Y-21-thumbBoxSize.Y)/2, thumbBoxSize.X, thumbBoxSize.Y, 180, 180, 180, 255); g->drawrect(screenPos.X-4+thumbBoxSize.X+(Size.X-thumbBoxSize.X)/2, screenPos.Y+(Size.Y-21-thumbBoxSize.Y)/2, 7, thumbBoxSize.Y, 180, 180, 180, 255); - int voteBar = max(10.0f, ((float)(thumbBoxSize.Y-4))*voteRatio); + int voteBar = std::max(10.0f, ((float)(thumbBoxSize.Y-4))*voteRatio); g->fillrect(1+screenPos.X-3+thumbBoxSize.X+(Size.X-thumbBoxSize.X)/2, (screenPos.Y-2)+(thumbBoxSize.Y-voteBar)+(Size.Y-21-thumbBoxSize.Y)/2, 3, voteBar, voteColour.Red, voteColour.Green, voteColour.Blue, 255); } else |
