From 2c69ba72313ca082fd4fe1d954f57db958742f9c Mon Sep 17 00:00:00 2001 From: Mjolnir Date: Mon, 7 Sep 2015 14:53:26 +0200 Subject: [PATCH] clean --- LivingDemos/Peephole.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/LivingDemos/Peephole.cpp b/LivingDemos/Peephole.cpp index 24dba7a..f5aa85a 100644 --- a/LivingDemos/Peephole.cpp +++ b/LivingDemos/Peephole.cpp @@ -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()));*/ } } -- 2.30.2