From d21447d096a320a08b3efb2b8768fad0dcdcfd64 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 5 May 2016 22:28:51 +0100 Subject: move frontends into sub directory --- frontends/amiga/plotters.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 frontends/amiga/plotters.h (limited to 'frontends/amiga/plotters.h') diff --git a/frontends/amiga/plotters.h b/frontends/amiga/plotters.h new file mode 100644 index 000000000..7baa21fb5 --- /dev/null +++ b/frontends/amiga/plotters.h @@ -0,0 +1,55 @@ +/* + * Copyright 2008, 2009 Chris Young + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef AMIGA_PLOTTERS_H +#define AMIGA_PLOTTERS_H +#include "desktop/plotters.h" +#include +#include + +struct IBox; + +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 palette_mapped; + ULONG apen; + ULONG open; + LONG apen_num; + LONG open_num; + int width; /* size of bm and */ + int height; /* associated memory */ +}; + +extern const struct plotter_table amiplot; + +void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height, bool force32bit); +void ami_free_layers(struct gui_globals *gg); +void ami_clearclipreg(struct gui_globals *gg); +void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox); +void ami_plot_release_pens(struct MinList *shared_pens); +bool ami_plot_screen_is_palettemapped(void); + +struct gui_globals *glob; +#endif -- cgit v1.2.3