diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-15 13:06:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-15 13:06:12 +0300 |
commit | e4e5017ac7d94682e7ba0792e7107faafbfb8f7b (patch) | |
tree | c43f66736fa2834348a27bde88e13f9f0a4de665 | |
parent | be002b5d8b9137011e37df519ddc5d5174179103 (diff) | |
download | plus-e4e5017ac7d94682e7ba0792e7107faafbfb8f7b.tar.gz plus-e4e5017ac7d94682e7ba0792e7107faafbfb8f7b.tar.bz2 plus-e4e5017ac7d94682e7ba0792e7107faafbfb8f7b.tar.xz plus-e4e5017ac7d94682e7ba0792e7107faafbfb8f7b.zip |
improve a bit video detection mode drawing.
-rw-r--r-- | src/test/testlauncher.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 82cfd4d6b..d3eca3da7 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -136,6 +136,7 @@ int TestLauncher::testFps() Wallpaper::loadWallpapers(); Wallpaper::getWallpaper(800, 600); Image *img[5]; + const int sz = 4; img[0] = Theme::getImageFromTheme("graphics/sprites/arrow_up.png"); img[1] = Theme::getImageFromTheme( @@ -145,22 +146,22 @@ int TestLauncher::testFps() img[4] = Theme::getImageFromTheme("graphics/images/login_wallpaper.png"); int idx = 0; - const int cnt = 20; + const int cnt = 50; gettimeofday(&start, nullptr); for (int k = 0; k < cnt; k ++) { - for (int x = 0; x < 800; x += 20) + for (int x = 0; x < 800; x += 30) { - for (int y = 0; y < 600; y += 25) + for (int y = 0; y < 600; y += 50) { mainGraphics->drawImage(img[idx], x, y); idx ++; - if (idx > 4) + if (idx > sz) idx = 0; mainGraphics->drawImage(img[idx], x, y); idx ++; - if (idx > 4) + if (idx > sz) idx = 0; } } |