diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2022-04-01 16:43:26 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2022-04-01 16:43:26 +0100 |
commit | eb7037ac4fa71a3cfe86bcb7e32d750b4e7c14a7 (patch) | |
tree | ea76fee4ae3f9d4cb4f76ed2d50ac12cffe372da /frontends/amiga | |
parent | 44e464e98daed2e0eab9cf52446ad2ab4e9a65a6 (diff) | |
download | netsurf-eb7037ac4fa71a3cfe86bcb7e32d750b4e7c14a7.tar.gz netsurf-eb7037ac4fa71a3cfe86bcb7e32d750b4e7c14a7.tar.bz2 |
Amiga: Do not use pre-multiplied alpha with CompositeTags() (ie. OS4 RTG)
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 6 | ||||
-rw-r--r-- | frontends/amiga/plotters.c | 26 |
2 files changed, 24 insertions, 8 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 6734433fd..8eb34fb92 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -6670,12 +6670,6 @@ int main(int argc, char** argv) win_destroyed = false; ami_font_setdevicedpi(0); /* for early font requests, eg treeview init */ - bitmap_set_format(&(bitmap_fmt_t) { - .layout = BITMAP_LAYOUT_ARGB8888, - .pma = true, - }); - NSLOG(netsurf, INFO, "Set bitmap format to 0xAARRGGBB (native endian)"); - window_list = NewObjList(); urldb_load(nsoption_charp(url_file)); diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index fe1e58f13..8bc1712dd 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -126,11 +126,34 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit if(depth < 16) { gg->palette_mapped = true; if(force32bit == false) palette_mapped = true; + + bitmap_set_format(&(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_ARGB8888, + .pma = true, + }); + + NSLOG(netsurf, INFO, "Set bitmap format to 0xAARRGGBB (native endian) (PMA)"); + } else { gg->palette_mapped = false; - if(force32bit == false) palette_mapped = false; + + bitmap_set_format(&(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_ARGB8888, + .pma = false, + }); + + NSLOG(netsurf, INFO, "Set bitmap format to 0xAARRGGBB (native endian)"); + } #else + bitmap_set_format(&(bitmap_fmt_t) { + .layout = BITMAP_LAYOUT_ARGB8888, + .pma = true, + }); + + NSLOG(netsurf, INFO, "Set bitmap format to 0xAARRGGBB (native endian) (PMA)"); + + /* Friend BitMaps are weird. * For OS4, we shouldn't use a friend BitMap here (see below). * For OS3 AGA, we get no display blitted if we use a friend BitMap, @@ -149,7 +172,6 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit if(force32bit == false) palette_mapped = true; } else { gg->palette_mapped = false; - if(force32bit == false) palette_mapped = false; } #endif |