summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-12 12:48:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-12 13:39:56 +0300
commit0a28edcfc315f4e907fa8f37efe3300efe88c8b8 (patch)
treeff29efa6c77ebb5a9a041f2b5b8e49ea9ddbd787 /src/test
parent1f1e02d2b0143dd1f89720cc204bb0da36b302e9 (diff)
downloadplus-0a28edcfc315f4e907fa8f37efe3300efe88c8b8.tar.gz
plus-0a28edcfc315f4e907fa8f37efe3300efe88c8b8.tar.bz2
plus-0a28edcfc315f4e907fa8f37efe3300efe88c8b8.tar.xz
plus-0a28edcfc315f4e907fa8f37efe3300efe88c8b8.zip
In modernopengl add rescaleddraw.
Also fix drawpattern.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index d5aaa4c0e..25cb639a4 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -393,7 +393,7 @@ int TestLauncher::testDraw()
boldFont->drawString(mainGraphics,
"test test test test test test test test ", 300, 100);
- mainGraphics->drawPattern(img[0], 10, 400, 100, 200);
+ mainGraphics->drawPattern(img[0], 10, 400, 300, 180);
mainGraphics->calcPattern(col, img[1], 500, 400, 150, 100);
mainGraphics->drawTileCollection(col);
@@ -403,6 +403,9 @@ int TestLauncher::testDraw()
mainGraphics->setColor(Color(0x00U, 0xFFU, 0x00U, 0x90U));
mainGraphics->drawNet(450, 10, 600, 300, 32, 20);
+ img[0]->setAlpha(0.3f);
+ mainGraphics->drawRescaledPattern(img[0], 250, 150, 250, 300, 30, 100);
+
for (int f = 0; f < 255; f ++)
{
mainGraphics->setColor(Color(0x20U, 0x60U, f, 0x90U));