clean
authorMjolnir <thomas.pietrzak@inria.fr>
Mon, 7 Sep 2015 12:53:26 +0000 (14:53 +0200)
committerMjolnir <thomas.pietrzak@inria.fr>
Mon, 7 Sep 2015 12:53:26 +0000 (14:53 +0200)
LivingDemos/Peephole.cpp

index 24dba7a76a6b7a7e9650558ed0cd433d9da0aaf4..f5aa85a5f9eba27dffe92ee257aed35b49f9d345 100644 (file)
@@ -49,13 +49,8 @@ void Peephole::scroll(int pos)
             return;
         unsigned int dest = rackwidth * pos / range - min;
         qDebug() << "Move to" << dest;
-        menu->getScreen()->moveto(dest);//(bgwidth - ui->image->width()));
+        menu->getScreen()->moveto(dest);
+        //We should make something better to prevent from flooding the screen
         QThread::msleep(20);
-/*        int delta = pos - viewpos;
-        viewpos = pos;
-        if (delta < 0)
-            menu->getScreen()->translation(LivingScreen::LEFT, -delta * rackwidth / (bgwidth - ui->image->width()));
-        else
-            menu->getScreen()->translation(LivingScreen::RIGHT, delta * rackwidth / (bgwidth - ui->image->width()));*/
     }
 }