summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-10-05 00:22:38 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-10-05 00:22:38 +0000
commit60949d1aee553cfd1816517b987246f54530d62c (patch)
treea56c4138f95c9aa77523e848b2cd5b9c58bf2c60 /riscos
parent403f12872d55a71b04287ed828be0c63be19e856 (diff)
downloadnetsurf-60949d1aee553cfd1816517b987246f54530d62c.tar.gz
netsurf-60949d1aee553cfd1816517b987246f54530d62c.tar.bz2
[project @ 2004-10-05 00:22:38 by rjw]
Fixes for missing changes to updated GIF code. svn path=/import/netsurf/; revision=1302
Diffstat (limited to 'riscos')
-rw-r--r--riscos/htmlredraw.c11
-rw-r--r--riscos/save.c3
2 files changed, 8 insertions, 6 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index 6dfc0b220..3ddd08e1d 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -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? */
diff --git a/riscos/save.c b/riscos/save.c
index c552ffbd9..69d590e86 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -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: