[project @ 2004-10-05 00:22:38 by rjw]

Fixes for missing changes to updated GIF code.

svn path=/import/netsurf/; revision=1302
This commit is contained in:
Richard Wilson 2004-10-05 00:22:38 +00:00
parent 403f12872d
commit 60949d1aee
2 changed files with 8 additions and 6 deletions

View File

@ -1018,7 +1018,8 @@ bool html_redraw_background(int xi, int yi, int width, int height,
box->background->height * 2,
background_colour,
repeat_x, repeat_y,
IMAGE_PLOT_TINCT_ALPHA);
((box->background->bitmap->opaque) ?
IMAGE_PLOT_TINCT_OPAQUE : IMAGE_PLOT_TINCT_ALPHA));
break;
#endif
#ifdef WITH_MNG
@ -1030,7 +1031,8 @@ bool html_redraw_background(int xi, int yi, int width, int height,
box->background->height * 2,
background_colour,
repeat_x, repeat_y,
IMAGE_PLOT_TINCT_ALPHA);
((box->background->bitmap->opaque) ?
IMAGE_PLOT_TINCT_OPAQUE : IMAGE_PLOT_TINCT_ALPHA));
break;
#endif
#ifdef WITH_JPEG
@ -1046,13 +1048,14 @@ bool html_redraw_background(int xi, int yi, int width, int height,
#endif
#ifdef WITH_GIF
case CONTENT_GIF:
image_redraw(box->background->data.gif.gif->frame_image,
image_redraw(&box->background->bitmap->sprite_area,
x, y, image_width, image_height,
box->background->width * 2,
box->background->height * 2,
background_colour,
repeat_x, repeat_y,
IMAGE_PLOT_TINCT_ALPHA);
((box->background->bitmap->opaque) ?
IMAGE_PLOT_TINCT_OPAQUE : IMAGE_PLOT_TINCT_ALPHA));
break;
#endif
/**\todo Add draw/sprite background support? */

View File

@ -426,7 +426,6 @@ bool ro_gui_save_complete(struct content *c, char *path)
void ro_gui_save_object_native(struct content *c, char *path)
{
os_error *error;
switch (c->type) {
#ifdef WITH_JPEG
@ -447,7 +446,7 @@ void ro_gui_save_object_native(struct content *c, char *path)
#endif
#ifdef WITH_GIF
case CONTENT_GIF:
error = xosspriteop_save_sprite_file(osspriteop_USER_AREA, c->data.gif.gif->frame_image, path);
bitmap_save(c->bitmap, path);
break;
#endif
default: