summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-11-24 23:46:31 +0000
committerJames Bursa <james@netsurf-browser.org>2005-11-24 23:46:31 +0000
commit7856e32d13528e4952b157a084a6bdddacf9a82e (patch)
tree78c75792c7175ea3f8c81eb88bea8880c9431fdb
parent392d687d91c53f7edb6cde8e1f02c2fe0e5977c6 (diff)
downloadnetsurf-7856e32d13528e4952b157a084a6bdddacf9a82e.tar.gz
netsurf-7856e32d13528e4952b157a084a6bdddacf9a82e.tar.bz2
[project @ 2005-11-24 23:46:31 by bursa]
Include images in exported DrawFiles. svn path=/import/netsurf/; revision=1884
-rw-r--r--riscos/save_draw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/riscos/save_draw.c b/riscos/save_draw.c
index 278803ceb..6eea1fb38 100644
--- a/riscos/save_draw.c
+++ b/riscos/save_draw.c
@@ -18,6 +18,7 @@
#include <pencil.h>
#include "netsurf/content/content.h"
#include "netsurf/desktop/plotters.h"
+#include "netsurf/riscos/bitmap.h"
#include "netsurf/riscos/gui.h"
#include "netsurf/riscos/save_draw.h"
#include "netsurf/utils/log.h"
@@ -260,6 +261,15 @@ bool ro_save_draw_disc(int x, int y, int radius, colour colour)
bool ro_save_draw_bitmap(int x, int y, int width, int height,
struct bitmap *bitmap, colour bg)
{
+ pencil_code code;
+
+ code = pencil_sprite(ro_save_draw_diagram, x * 2, (-y - height) * 2,
+ width * 2, height * 2,
+ ((char *) bitmap->sprite_area) +
+ bitmap->sprite_area->first);
+ if (code != pencil_OK)
+ return ro_save_draw_error(code);
+
return true;
}