summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-03-04 20:46:54 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-03-04 20:46:54 +0000
commitea76f90611dbee5ee8c6b2794db37975a360cb30 (patch)
tree788ce41e90fe7b81c7855a03d7c7b990ff1833dc /image
parent25a995931da1be77df132f7355218e86b0d0c00d (diff)
downloadnetsurf-ea76f90611dbee5ee8c6b2794db37975a360cb30.tar.gz
netsurf-ea76f90611dbee5ee8c6b2794db37975a360cb30.tar.bz2
[project @ 2006-03-04 20:46:54 by jmb]
Make nsmng_redraw call plot.bitmap svn path=/import/netsurf/; revision=2105
Diffstat (limited to 'image')
-rw-r--r--image/mng.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/image/mng.c b/image/mng.c
index cb4a7eef4..3f1678424 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -450,10 +450,25 @@ bool nsmng_redraw(struct content *c, int x, int y,
int clip_x0, int clip_y0, int clip_x1, int clip_y1,
float scale, unsigned long background_colour)
{
- return nsmng_redraw_tiled(c, x, y, width, height,
- clip_x0, clip_y0, clip_x1, clip_y1,
- scale, background_colour,
- false, false);
+ bool ret;
+
+ /* mark image as having been requested to display */
+ c->data.mng.displayed = true;
+
+ if ((c->bitmap) && (c->data.mng.opaque_test_pending)) {
+ bitmap_set_opaque(c->bitmap, bitmap_test_opaque(c->bitmap));
+ c->data.mng.opaque_test_pending = false;
+ }
+
+ ret = plot.bitmap(x, y, width, height,
+ c->bitmap, background_colour);
+
+ /* Check if we need to restart the animation
+ */
+ if ((c->data.mng.waiting) && (option_animate_images))
+ nsmng_animate(c);
+
+ return ret;
}