summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-26 19:18:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-26 19:18:44 +0300
commita854f6b6aa81e7b387bce2293e9c84e0e96dfbd6 (patch)
tree16b6a47b8d94e117abf570ad0268a11ffb833cfd /src/test
parentcd94be3d8356e713cf5b72c64d22ec5baf5cae4a (diff)
downloadmanaverse-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.gz
manaverse-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.bz2
manaverse-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.xz
manaverse-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.zip
Fix code style.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index c8ed805a4..27516417b 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -46,7 +46,11 @@
#include "resources/wallpaper.h"
#include "resources/dye/dye.h"
+#if defined __linux__ || defined __linux
+#ifdef SIMD_SUPPORTED
#include "resources/dye/dyepalette.h"
+#endif // SIMD_SUPPORTED
+#endif // defined __linux__ || defined __linux
#include "resources/image/image.h"
@@ -645,14 +649,15 @@ int TestLauncher::testDraw()
img[0] = Theme::getImageFromTheme("graphics/sprites/arrow_left.png");
img[1] = Theme::getImageFromTheme("graphics/sprites/arrow_right.png");
img[2] = Theme::getImageFromTheme("graphics/sprites/arrow_up.png");
+ Skin *skin = theme->load("button.xml", "button.xml");
+ if (!skin)
+ return 0;
+
ImageCollection *const col = new ImageCollection;
ImageCollection *const col2 = new ImageCollection;
ImageVertexes *const vert = new ImageVertexes;
vert->image = img[2];
- Skin *skin = theme->load("button.xml", "button.xml");
- if (!skin)
- return 0;
mainGraphics->pushClipArea(Rect(10, 20, 790, 580));
mainGraphics->setColor(Color(0xFFU, 0xFFU, 0x00U, 0xFFU));
mainGraphics->drawRectangle(Rect(0, 0, 400, 200));
@@ -712,6 +717,8 @@ int TestLauncher::testDraw()
sleep(10);
delete col;
+ delete col2;
+ delete vert;
return 0;
}