From 7856e32d13528e4952b157a084a6bdddacf9a82e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 24 Nov 2005 23:46:31 +0000 Subject: [project @ 2005-11-24 23:46:31 by bursa] Include images in exported DrawFiles. svn path=/import/netsurf/; revision=1884 --- riscos/save_draw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 #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; } -- cgit v1.2.3