summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-11-22 14:24:53 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-11-22 14:24:53 +0000
commit3f4d79e576b67f0880584845bd64e8dd8823abc1 (patch)
treeac2d0807e6d19abf95a4a4b7ad5e448e7fb0181b /content/content.c
parent8685cfb3b77ecd1a67a4120c14960e1a81fa08ce (diff)
downloadnetsurf-3f4d79e576b67f0880584845bd64e8dd8823abc1.tar.gz
netsurf-3f4d79e576b67f0880584845bd64e8dd8823abc1.tar.bz2
This optimisation was so simple that it was broken.
svn path=/trunk/netsurf/; revision=9696
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c
index f9d2008d1..e00f3bcd6 100644
--- a/content/content.c
+++ b/content/content.c
@@ -1098,7 +1098,7 @@ bool content_redraw_tiled(struct content *c, int x, int y,
(height == 0))
return true;
/* simple optimisation for no repeat (common for backgrounds) */
- if ((!repeat_x) || (!repeat_y))
+ if ((!repeat_x) && (!repeat_y))
return handler_map[c->type].redraw(c, x, y, width,
height, clip_x0, clip_y0, clip_x1, clip_y1,
scale, background_colour);