diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/minimap.cpp | 6 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 1f3a903c..8640fdb0 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -108,11 +108,11 @@ void Minimap::draw(gcn::Graphics *graphics) continue; } - int offset = (dotSize - 1) * mProportion; + int offset = (dotSize - 1) * (int) mProportion; graphics->fillRectangle(gcn::Rectangle( - (being->mX * mProportion) + getPadding() - offset, - (being->mY * mProportion) + getTitleBarHeight() - offset, + (being->mX * (int) mProportion) + getPadding() - offset, + (being->mY * (int) mProportion) + getTitleBarHeight() - offset, dotSize, dotSize)); } } diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 95e0d2b6..f6361ef7 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -259,7 +259,7 @@ Viewport::draw(gcn::Graphics *gcnGraphics) // Draw names if (textManager) { - textManager->draw(graphics, mPixelViewX, mPixelViewY); + textManager->draw(graphics, (int) mPixelViewX, (int) mPixelViewY); } // Draw player speech, and emotion sprite as needed |