mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-10 21:12:01 +03:00
hide internal palette-mapped and true-colour bitmap conversion functions
This commit is contained in:
parent
2eeb2c07bf
commit
3ba621759c
@ -351,17 +351,7 @@ struct bitmap *ami_bitmap_from_datatype(char *filename)
|
||||
return bm;
|
||||
}
|
||||
|
||||
struct BitMap *ami_bitmap_get_native(struct bitmap *bitmap,
|
||||
int width, int height, struct BitMap *friendbm)
|
||||
{
|
||||
if(ami_plot_screen_is_palettemapped() == true) {
|
||||
return ami_bitmap_get_palettemapped(bitmap, width, height);
|
||||
} else {
|
||||
return ami_getcachenativebm(bitmap, width, height, friendbm);
|
||||
}
|
||||
}
|
||||
|
||||
struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm)
|
||||
static struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm)
|
||||
{
|
||||
struct RenderInfo ri;
|
||||
struct BitMap *tbm = NULL;
|
||||
@ -477,7 +467,7 @@ struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,s
|
||||
return tbm;
|
||||
}
|
||||
|
||||
struct BitMap *ami_bitmap_get_palettemapped(struct bitmap *bitmap,
|
||||
static struct BitMap *ami_bitmap_get_palettemapped(struct bitmap *bitmap,
|
||||
int width, int height)
|
||||
{
|
||||
struct BitMap *dtbm;
|
||||
@ -521,3 +511,13 @@ struct BitMap *ami_bitmap_get_palettemapped(struct bitmap *bitmap,
|
||||
|
||||
return dtbm;
|
||||
}
|
||||
|
||||
struct BitMap *ami_bitmap_get_native(struct bitmap *bitmap,
|
||||
int width, int height, struct BitMap *friendbm)
|
||||
{
|
||||
if(ami_plot_screen_is_palettemapped() == true) {
|
||||
return ami_bitmap_get_palettemapped(bitmap, width, height);
|
||||
} else {
|
||||
return ami_getcachenativebm(bitmap, width, height, friendbm);
|
||||
}
|
||||
}
|
||||
|
@ -44,9 +44,6 @@ struct bitmap {
|
||||
|
||||
struct BitMap *ami_bitmap_get_native(struct bitmap *bitmap,
|
||||
int width, int height, struct BitMap *friendbm);
|
||||
struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm);
|
||||
struct BitMap *ami_bitmap_get_palettemapped(struct bitmap *bitmap, int width, int height);
|
||||
|
||||
Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap);
|
||||
struct bitmap *ami_bitmap_from_datatype(char *filename);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user