diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-06-28 19:38:15 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-06-28 19:38:15 +0100 |
commit | 793f514220c15c6bb1b0db31bf0b6d0cfea0fc7b (patch) | |
tree | a5c48085327c60063894d112eaf422e258bb0dbf /frontends/amiga/plotters.c | |
parent | 474fd81bf685714a4596350c679a1f08d2b00390 (diff) | |
download | netsurf-793f514220c15c6bb1b0db31bf0b6d0cfea0fc7b.tar.gz netsurf-793f514220c15c6bb1b0db31bf0b6d0cfea0fc7b.tar.bz2 |
Amiga: do not force 32-bit bitmaps
This appears to be unnecessary
Diffstat (limited to 'frontends/amiga/plotters.c')
-rw-r--r-- | frontends/amiga/plotters.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index fe1e58f13..68e682b0b 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -110,7 +110,7 @@ static bool palette_mapped = true; /* palette-mapped state for the screen */ */ #define AREA_SIZE 25000 -struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit, bool alloc_pen_list) +struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool alloc_pen_list) { /* init shared bitmaps */ int depth = 32; @@ -119,16 +119,16 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit struct gui_globals *gg = malloc(sizeof(struct gui_globals)); - if(force32bit == false) depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH); + depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH); NSLOG(netsurf, INFO, "Screen depth = %d", depth); #ifdef __amigaos4__ if(depth < 16) { gg->palette_mapped = true; - if(force32bit == false) palette_mapped = true; + palette_mapped = true; } else { gg->palette_mapped = false; - if(force32bit == false) palette_mapped = false; + palette_mapped = false; } #else /* Friend BitMaps are weird. @@ -141,15 +141,15 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit } else { /* Force friend BitMaps on for obvious RTG screens under OS3. * If we get a bit smarter about this we can lose the user option. */ - if((depth > 8) && (force32bit == false)) friend = scrn->RastPort.BitMap; + if(depth > 8) friend = scrn->RastPort.BitMap; } if(depth < 16) { gg->palette_mapped = true; - if(force32bit == false) palette_mapped = true; + palette_mapped = true; } else { gg->palette_mapped = false; - if(force32bit == false) palette_mapped = false; + palette_mapped = false; } #endif @@ -177,7 +177,7 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit * \todo use friend BitMaps but avoid CompositeTags() at non-32-bit * as that seems to be the cause of the problems. */ - if((depth >= 24) && (force32bit == false)) friend = scrn->RastPort.BitMap; + if(depth >= 24) friend = scrn->RastPort.BitMap; #endif gg->bm = ami_rtg_allocbitmap(width, height, 32, 0, friend, RGBFB_A8R8G8B8); } |