diff options
-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 |