diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-11-11 21:34:46 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-11-11 21:54:15 +0000 |
commit | 8e1154eb1cef4e102504fae25fb9805040d37226 (patch) | |
tree | 92c1f50c04edf0d6ae741f671e1994df13150a8c /content/handlers/image | |
parent | db7f1f01a97cb9a26cbe6433542d7d6b25940929 (diff) | |
download | netsurf-8e1154eb1cef4e102504fae25fb9805040d37226.tar.gz netsurf-8e1154eb1cef4e102504fae25fb9805040d37226.tar.bz2 |
Content: Remove redundant and unused redraw message fields.
This was archaic support for rendering images as "overlays",
and avoiding a redraw via the browser window redraw and HTML
contents. Basically it was "plot this image here", but it
was too error prone, so it was removed a long time ago.
These are some last vestiges that made the redraw message
look more complex than it is.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/gif.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c index 94f8d3f62..fa343fbac 100644 --- a/content/handlers/image/gif.c +++ b/content/handlers/image/gif.c @@ -173,11 +173,9 @@ static void nsgif_animate(void *p) /* redraw background (true) or plot on top (false) */ if (gif->current_frame > 0) { - data.redraw.full_redraw = - gif->gif->frames[f - 1].redraw_required; /* previous frame needed clearing: expand the redraw area to * cover it */ - if (data.redraw.full_redraw) { + if (gif->gif->frames[f - 1].redraw_required) { if (data.redraw.x > (int)(gif->gif->frames[f - 1].redraw_x)) { data.redraw.width += data.redraw.x - @@ -207,28 +205,8 @@ static void nsgif_animate(void *p) data.redraw.y + gif->gif->frames[f - 1].redraw_height; } - } else { - /* do advanced check */ - if ((data.redraw.x == 0) && (data.redraw.y == 0) && - (data.redraw.width == (int)(gif->gif->width)) && - (data.redraw.height == (int)(gif->gif->height))) { - data.redraw.full_redraw = !gif->gif->frames[f].opaque; - } else { - data.redraw.full_redraw = true; - data.redraw.x = 0; - data.redraw.y = 0; - data.redraw.width = gif->gif->width; - data.redraw.height = gif->gif->height; - } } - /* other data */ - data.redraw.object = (struct content *) gif; - data.redraw.object_x = 0; - data.redraw.object_y = 0; - data.redraw.object_width = gif->base.width; - data.redraw.object_height = gif->base.height; - content_broadcast(&gif->base, CONTENT_MSG_REDRAW, &data); } |