[project @ 2005-11-24 23:46:31 by bursa]

Include images in exported DrawFiles.

svn path=/import/netsurf/; revision=1884
This commit is contained in:
James Bursa 2005-11-24 23:46:31 +00:00
parent 392d687d91
commit 7856e32d13
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}