[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:
parent
392d687d91
commit
7856e32d13
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue