diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 21:04:14 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 21:04:14 +0100 |
commit | 1fac65b02e813a446d9ae01c90b67c700f18de32 (patch) | |
tree | cfc6ed5d0c9cceffa350ad0e022a39ba34e84781 /metawatch | |
parent | 84c65a64e3e2050009dbd2ec82dc64e487e798a4 (diff) | |
download | sowatch-1fac65b02e813a446d9ae01c90b67c700f18de32.tar.gz sowatch-1fac65b02e813a446d9ae01c90b67c700f18de32.zip |
disable partial updates, seems to make things slower
Diffstat (limited to 'metawatch')
-rw-r--r-- | metawatch/metawatchdigital.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/metawatch/metawatchdigital.cpp b/metawatch/metawatchdigital.cpp index 9d0d376..31f3276 100644 --- a/metawatch/metawatchdigital.cpp +++ b/metawatch/metawatchdigital.cpp @@ -124,20 +124,17 @@ void MetaWatchDigital::update(Mode mode, const QList<QRect> &rects) if (!_connected) return; const QRect clipRect(0, 0, screenWidth, screenHeight); QVector<bool> lines(screenHeight, false); - int highest = 0, lowest = screenHeight; foreach (const QRect& rect, rects) { QRect r = rect.intersect(clipRect); for (int i = r.top(); i <= r.bottom(); i++) { - if (i < highest) highest = i; - if (i > lowest) lowest = i; lines[i] = true; } } updateLcdLines(mode, _image[mode], lines); if (mode == _currentMode) { - updateLcdDisplay(mode, lowest, highest); + updateLcdDisplay(mode); } } |