diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-29 21:22:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-29 21:22:33 +0300 |
commit | f94a6551b8d140e272ac1c46bce1ff0e5df34986 (patch) | |
tree | 35c764dfec7b76f926c30cd186b6fe36968b6529 /src/test/testlauncher.cpp | |
parent | 0336b91f51cdf14e022f74d16c15892b63b658eb (diff) | |
download | manaplus-f94a6551b8d140e272ac1c46bce1ff0e5df34986.tar.gz manaplus-f94a6551b8d140e272ac1c46bce1ff0e5df34986.tar.bz2 manaplus-f94a6551b8d140e272ac1c46bce1ff0e5df34986.tar.xz manaplus-f94a6551b8d140e272ac1c46bce1ff0e5df34986.zip |
improve draw image calls.
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r-- | src/test/testlauncher.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 99f0b1753..d13308110 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 ++) { - DRAW_IMAGE(mainGraphics, img, cnt * 7, cnt * 5); + mainGraphics->drawImage2(img, cnt * 7, cnt * 5); mainGraphics->updateScreen(); } @@ -152,11 +152,11 @@ int TestLauncher::testFps() { for (int y = 0; y < 600; y += 50) { - DRAW_IMAGE(mainGraphics, img[idx], x, y); + mainGraphics->drawImage2(img[idx], x, y); idx ++; if (idx > sz) idx = 0; - DRAW_IMAGE(mainGraphics, img[idx], x, y); + mainGraphics->drawImage2(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) { - DRAW_IMAGE(mainGraphics, img[idx], x, y); - DRAW_IMAGE(mainGraphics, img[idx], x + 1, y); - DRAW_IMAGE(mainGraphics, img[idx], x, y + 5); + mainGraphics->drawImage2(img[idx], x, y); + mainGraphics->drawImage2(img[idx], x + 1, y); + mainGraphics->drawImage2(img[idx], x, y + 5); idx ++; if (idx > 3) |