summaryrefslogtreecommitdiff
path: root/src/test/testlauncher.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/test/testlauncher.cpp
parent2851324a6847efa7ea6f556941b369e9e304dc23 (diff)
downloadmanaplus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.gz
manaplus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.bz2
manaplus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.xz
manaplus-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.zip
Improve a bit separate images drawing.
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r--src/test/testlauncher.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index 44421ee41..99f0b1753 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -94,7 +94,7 @@ int TestLauncher::testBackend() const
for (int f = 0; f < cnt; f ++)
{
- mainGraphics->drawImage(img, cnt * 7, cnt * 5);
+ DRAW_IMAGE(mainGraphics, img, cnt * 7, cnt * 5);
mainGraphics->updateScreen();
}
@@ -152,11 +152,11 @@ int TestLauncher::testFps()
{
for (int y = 0; y < 600; y += 50)
{
- mainGraphics->drawImage(img[idx], x, y);
+ DRAW_IMAGE(mainGraphics, img[idx], x, y);
idx ++;
if (idx > sz)
idx = 0;
- mainGraphics->drawImage(img[idx], x, y);
+ DRAW_IMAGE(mainGraphics, img[idx], x, y);
idx ++;
if (idx > sz)
idx = 0;
@@ -211,9 +211,9 @@ int TestLauncher::testInternal()
{
for (int y = 0; y < 600; y += 25)
{
- mainGraphics->drawImage(img[idx], x, y);
- mainGraphics->drawImage(img[idx], x + 1, y);
- mainGraphics->drawImage(img[idx], x, y + 5);
+ DRAW_IMAGE(mainGraphics, img[idx], x, y);
+ DRAW_IMAGE(mainGraphics, img[idx], x + 1, y);
+ DRAW_IMAGE(mainGraphics, img[idx], x, y + 5);
idx ++;
if (idx > 3)