summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-14 16:59:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-14 16:59:21 +0300
commitd9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (patch)
treedb2f8a25d466ce6aa5ca1747216156f7869a06d1 /src/gui/gui.cpp
parent2851324a6847efa7ea6f556941b369e9e304dc23 (diff)
downloadplus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.gz
plus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.bz2
plus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.xz
plus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.zip
Improve a bit separate images drawing.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 60924bfd4..2a0c1d641 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -468,7 +468,7 @@ void Gui::draw()
{
const int posX = mouseX - (image->mBounds.w / 2);
const int posY = mouseY - (image->mBounds.h / 2);
- g2->drawImage(image, posX, posY);
+ DRAW_IMAGE(g2, image, posX, posY);
}
if (mGuiFont)
{
@@ -486,7 +486,7 @@ void Gui::draw()
if (mouseCursor)
{
mouseCursor->setAlpha(mMouseCursorAlpha);
- g2->drawImage(mouseCursor, mouseX - 15, mouseY - 17);
+ DRAW_IMAGE(g2, mouseCursor, mouseX - 15, mouseY - 17);
}
}