mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Experimentally enable P96 on the OS3 build
This commit is contained in:
parent
852527a12f
commit
25a4cce542
@ -355,14 +355,6 @@ Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap)
|
||||
IDoMethod(dto, PDTM_WRITEPIXELARRAY, bitmap_get_buffer(bitmap),
|
||||
PBPAFMT_RGBA, bitmap_get_rowstride(bitmap), 0, 0,
|
||||
bitmap_get_width(bitmap), bitmap_get_height(bitmap));
|
||||
#if 0
|
||||
ami_bitmap_rgba_to_argb(bitmap);
|
||||
IDoMethod(dto, PDTM_WRITEPIXELARRAY, bitmap_get_buffer(bitmap),
|
||||
PBPAFMT_ARGB, bitmap_get_rowstride(bitmap), 0, 0,
|
||||
bitmap_get_width(bitmap), bitmap_get_height(bitmap));
|
||||
ami_bitmap_argb_to_rgb(bitmap);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
return dto;
|
||||
@ -400,7 +392,6 @@ struct bitmap *ami_bitmap_from_datatype(char *filename)
|
||||
static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm)
|
||||
{
|
||||
struct BitMap *tbm = NULL;
|
||||
#ifdef __amigaos4__
|
||||
|
||||
if(!bitmap) return NULL;
|
||||
|
||||
@ -497,7 +488,7 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,
|
||||
bitmap->nativebmheight = height;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return tbm;
|
||||
}
|
||||
|
||||
|
@ -101,13 +101,12 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
|
||||
depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH);
|
||||
LOG(("Screen depth = %d", depth));
|
||||
|
||||
#ifdef __amigaos4__
|
||||
if(depth < 16) {
|
||||
palette_mapped = true;
|
||||
} else {
|
||||
palette_mapped = false;
|
||||
}
|
||||
#else
|
||||
#if 0
|
||||
palette_mapped = true; /* only supporting palette mapped screens on OS3 for now */
|
||||
if(depth > 8) depth = 8;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user