diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-05-03 20:23:41 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-05-03 20:23:41 +0100 |
commit | 8de37d84aaefb0626b502ca6d6cf20edc7379875 (patch) | |
tree | 7751643d60e9c28c211ddfaa1dcdcaa649da07d9 /amiga | |
parent | b9e71cee63ec147016faf57773abadcde6924a6f (diff) | |
download | netsurf-8de37d84aaefb0626b502ca6d6cf20edc7379875.tar.gz netsurf-8de37d84aaefb0626b502ca6d6cf20edc7379875.tar.bz2 |
Revert back to using the guigfx built-in palette
Some colours are still a bit weird but it appears to have improved things a bit
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/bitmap.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c index 6ef5157b2..d04857262 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -70,7 +70,6 @@ struct bitmap { PLANEPTR native_mask; Object *dto; APTR drawhandle; - APTR psm; struct nsurl *url; /* temporary storage space */ char *title; /* temporary storage space */ ULONG *icondata; /* for appicons */ @@ -106,7 +105,6 @@ void *amiga_bitmap_create(int width, int height, unsigned int state) bitmap->nativebmheight = 0; bitmap->native_mask = NULL; bitmap->drawhandle = NULL; - bitmap->psm = NULL; bitmap->url = NULL; bitmap->title = NULL; bitmap->icondata = NULL; @@ -152,7 +150,6 @@ void amiga_bitmap_destroy(void *bitmap) if(bm->native_mask) FreeRaster(bm->native_mask, bm->width, bm->height); if(bm->drawhandle) ReleaseDrawHandle(bm->drawhandle); - if(bm->psm) DeletePenShareMap(bm->psm); FreeVec(bm->pixdata); if(bm->url) nsurl_unref(bm->url); @@ -162,7 +159,6 @@ void amiga_bitmap_destroy(void *bitmap) bm->nativebm = NULL; bm->native_mask = NULL; bm->drawhandle = NULL; - bm->psm = NULL; bm->url = NULL; bm->title = NULL; @@ -206,11 +202,9 @@ void amiga_bitmap_modified(void *bitmap) ami_rtg_freebitmap(bm->nativebm); if(bm->drawhandle) ReleaseDrawHandle(bm->drawhandle); - if(bm->psm) DeletePenShareMap(bm->psm); if(bm->native_mask) FreeRaster(bm->native_mask, bm->width, bm->height); bm->nativebm = NULL; bm->drawhandle = NULL; - bm->psm = NULL; bm->native_mask = NULL; bm->native = AMI_NSBM_NONE; } @@ -446,12 +440,8 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, int w } ami_bitmap_rgba_to_argb(bitmap); - bitmap->psm = CreatePenShareMap(TAG_DONE); - AddPixelArray(bitmap->psm, (ULONG *)amiga_bitmap_get_buffer(bitmap), - bitmap->width, bitmap->height, - GGFX_PixelFormat, PIXFMT_0RGB_32, TAG_DONE); - - bitmap->drawhandle = ObtainDrawHandle(bitmap->psm, &rp, scrn->ViewPort.ColorMap, + bitmap->drawhandle = ObtainDrawHandle(NULL, + &rp, scrn->ViewPort.ColorMap, GGFX_DitherMode, dithermode, TAG_DONE); |