summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-03-28 20:42:25 +0100
committerJavier S. Pedro <maemo@javispedro.com>2013-03-28 20:42:25 +0100
commit84c65a64e3e2050009dbd2ec82dc64e487e798a4 (patch)
treecb5fcb587df33874cf21f2c4319e93f2a5d10a2e
parent867793a4626124e385ae5464c259f7ddf378305f (diff)
downloadsowatch-84c65a64e3e2050009dbd2ec82dc64e487e798a4.tar.gz
sowatch-84c65a64e3e2050009dbd2ec82dc64e487e798a4.zip
trying new partial lcd update command
-rw-r--r--metawatch/metawatchdigital.cpp5
-rwxr-xr-xqtc_packaging/debian_harmattan/rules9
2 files changed, 6 insertions, 8 deletions
diff --git a/metawatch/metawatchdigital.cpp b/metawatch/metawatchdigital.cpp
index 31f3276..9d0d376 100644
--- a/metawatch/metawatchdigital.cpp
+++ b/metawatch/metawatchdigital.cpp
@@ -124,17 +124,20 @@ 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);
+ updateLcdDisplay(mode, lowest, highest);
}
}
diff --git a/qtc_packaging/debian_harmattan/rules b/qtc_packaging/debian_harmattan/rules
index 804d37c..a0d97f2 100755
--- a/qtc_packaging/debian_harmattan/rules
+++ b/qtc_packaging/debian_harmattan/rules
@@ -60,18 +60,13 @@ binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
- dh_installchangelogs
+ dh_installchangelogs
dh_installdocs
- dh_installexamples
-# dh_install
-# dh_installmime
-# dh_installinit
- dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
- dh_makeshlibs
+ # dh_makeshlibs # Uncomment this line for use without Qt Creator
dh_installdeb
# dh_shlibdeps # Uncomment this line for use without Qt Creator
dh_gencontrol