summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-20 20:36:14 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-20 20:36:14 +0000
commite3af7f334303b36414c3a7c39dec22ec179dbd09 (patch)
tree43db743d171d374bc5d2ef60147e9e3a0c2e6daf /amiga/gui.c
parentd0f7247ea67491b4bfae28cb90538b68c6f83d70 (diff)
downloadnetsurf-e3af7f334303b36414c3a7c39dec22ec179dbd09.tar.gz
netsurf-e3af7f334303b36414c3a7c39dec22ec179dbd09.tar.bz2
Abstract P96 functions away so we can decide what to use at run-time.
This allows us to avoid opening P96 on OS4.1FE in future, and not require it to be installed on OS3.
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index eeb39421d..5d0504c8a 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -35,7 +35,6 @@
#include <proto/keymap.h>
#include <proto/locale.h>
#ifdef __amigaos4__
-#include <proto/Picasso96API.h>
#include <proto/popupmenu.h>
#endif
#include <proto/utility.h>
@@ -142,6 +141,7 @@
#include "amiga/plotters.h"
#include "amiga/plugin_hack.h"
#include "amiga/print.h"
+#include "amiga/rtg.h"
#include "amiga/schedule.h"
#include "amiga/search.h"
#include "amiga/theme.h"
@@ -2844,7 +2844,7 @@ void ami_switch_tab(struct gui_window_2 *gwin, bool redraw)
RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL],
gwin->win, NULL, STRINGA_TextVal, "", TAG_DONE);
- p96RectFill(gwin->win->RPort, bbox->Left, bbox->Top,
+ ami_rtg_rectfill(gwin->win->RPort, bbox->Left, bbox->Top,
bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
ami_gui_free_space_box(bbox);
@@ -2859,7 +2859,7 @@ void ami_switch_tab(struct gui_window_2 *gwin, bool redraw)
{
gui_window_set_icon(gwin->gw, gwin->gw->favicon);
- p96RectFill(gwin->win->RPort, bbox->Left, bbox->Top,
+ ami_rtg_rectfill(gwin->win->RPort, bbox->Left, bbox->Top,
bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
browser_window_update(gwin->gw->bw, false);