diff options
Diffstat (limited to 'frontends/amiga/plotters.c')
-rw-r--r-- | frontends/amiga/plotters.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index 0f00bc415..cc48fc442 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -20,6 +20,8 @@ #include <proto/exec.h> #include <proto/intuition.h> +#include <proto/layers.h> +#include <proto/graphics.h> #include <intuition/intuition.h> #include <graphics/rpattr.h> @@ -82,6 +84,24 @@ struct bez_point { float y; }; +struct gui_globals { + struct BitMap *bm; + struct RastPort *rp; + struct Layer_Info *layerinfo; + APTR areabuf; + APTR tmprasbuf; + struct Rectangle rect; + struct MinList *shared_pens; + bool managed_pen_list; + bool palette_mapped; + ULONG apen; + ULONG open; + LONG apen_num; + LONG open_num; + int width; /* size of bm and */ + int height; /* associated memory */ +}; + static int init_layers_count = 0; static APTR pool_pens = NULL; static bool palette_mapped = true; /* palette-mapped state for the screen */ @@ -260,6 +280,11 @@ void ami_plot_ra_free(struct gui_globals *gg) free(gg); } +struct RastPort *ami_plot_ra_get_rastport(struct gui_globals *gg) +{ + return gg->rp; +} + struct BitMap *ami_plot_ra_get_bitmap(struct gui_globals *gg) { return gg->bm; |