From e4e5017ac7d94682e7ba0792e7107faafbfb8f7b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Sep 2013 13:06:12 +0300 Subject: improve a bit video detection mode drawing. --- src/test/testlauncher.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/test/testlauncher.cpp') 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; } } -- cgit v1.2.3-60-g2f50