summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-04 23:55:02 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-04 23:55:02 +0100
commiteed37af7518fcb9a30d7bb4d1c5e6349a90f95bb (patch)
tree5b9d21b2e631d6e690f2de2835817252a9b011f2 /amiga/plotters.c
parentdad8065f0a0f9a572983444b3f51d4cddca69ecc (diff)
downloadnetsurf-eed37af7518fcb9a30d7bb4d1c5e6349a90f95bb.tar.gz
netsurf-eed37af7518fcb9a30d7bb4d1c5e6349a90f95bb.tar.bz2
Fix colours - rectangles now printing correctly. Fix an 'early' crash caused by unfriendly bitmaps. Text needs fixing. There is also a 'late' crash which makes it unusable.
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 7a8e6ccff..d52be347d 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -131,10 +131,10 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
struct BitMap *friend = NULL; /* Required to be NULL for Cairo and ARGB bitmaps */
if(dri = GetScreenDrawInfo(scrn)) {
- if(depth < 16) {
+ if(dri->dri_Depth < 16) {
palette_mapped = true;
depth = dri->dri_Depth; /* this is always wrong */
- friend = scrn->RastPort.BitMap;
+ // friend = scrn->RastPort.BitMap;
} else {
palette_mapped = false;
}
@@ -239,6 +239,7 @@ void ami_plot_setapen(ULONG colour)
if(pen == -1) LOG(("WARNING: Cannot allocate pen for ABGR:%lx", colour));
SetAPen(glob->rp, pen);
+ /* TODO: Add pen to a list for later release */
}
}