summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-09-05 02:38:36 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-09-05 02:38:36 +0000
commit0561047bc0787d55e994a2e9c73bd243285fed86 (patch)
tree27583d0c420ed7d19f294e3a4959f7502ff196fe /src
parentLPE: add Paste LPE verb + menu item. add scale ratios to curve stitch and pat... (diff)
downloadinkscape-0561047bc0787d55e994a2e9c73bd243285fed86.tar.gz
inkscape-0561047bc0787d55e994a2e9c73bd243285fed86.zip
prevent freeze when window is too wide; reduce tile size to 16 for now
(bzr r3676)
Diffstat (limited to 'src')
-rw-r--r--src/display/sp-canvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index 1e7b8051f..57a6ac269 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -44,7 +44,7 @@
// Tiles are a way to minimize the number of redraws, eliminating too small redraws.
// The canvas stores a 2D array of ints, each representing a TILE_SIZExTILE_SIZE pixels tile.
// If any part of it is dirtied, the entire tile is dirtied (its int is nonzero) and repainted.
-#define TILE_SIZE 32
+#define TILE_SIZE 16
enum {
RENDERMODE_NORMAL,
@@ -1714,7 +1714,7 @@ faster.
The default for now is the strips mode.
*/
- if (bw < bh) {
+ if (bw < bh || bh < 2 * TILE_SIZE) {
int mid = (this_rect.x0 + this_rect.x1) / 2;
// Make sure that mid lies on a tile boundary
mid = (mid / TILE_SIZE) * TILE_SIZE;