summaryrefslogtreecommitdiff
path: root/liveview/liveviewpaintengine.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-06-15 20:35:33 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-06-15 20:35:33 +0200
commit378611f629abc146eaf0b13301f119d826edb86b (patch)
tree3f2447b75bfe155bbb013b07e08f2922d23a0f3a /liveview/liveviewpaintengine.cpp
parenta3797790c7da7a5c88005735619dc56a96264930 (diff)
downloadsowatch-378611f629abc146eaf0b13301f119d826edb86b.tar.gz
sowatch-378611f629abc146eaf0b13301f119d826edb86b.zip
add some support for notifications in liveview
Diffstat (limited to 'liveview/liveviewpaintengine.cpp')
-rw-r--r--liveview/liveviewpaintengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/liveview/liveviewpaintengine.cpp b/liveview/liveviewpaintengine.cpp
index 2370477..c073901 100644
--- a/liveview/liveviewpaintengine.cpp
+++ b/liveview/liveviewpaintengine.cpp
@@ -22,13 +22,13 @@ bool LiveViewPaintEngine::end()
if (ret) {
QRect rect = _damaged.boundingRect();
- const int tile_size = 64;
+ const int tile_size = LiveView::MaxBitmapSize;
// Have to make tiles
for (int x = rect.left(); x < rect.right(); x += tile_size) {
for (int y = rect.top(); y < rect.bottom(); y += tile_size) {
QRect tile(x, y,
- qMin(x + tile_size, rect.right()),
- qMin(y + tile_size, rect.bottom()));
+ qMin(tile_size, rect.width()),
+ qMin(tile_size, rect.height()));
QImage sub_image = _watch->image()->copy(tile);
_watch->renderImage(tile.x(), tile.y(), sub_image);
}