summaryrefslogtreecommitdiff
path: root/amiga/bitmap.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:28:55 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:28:55 +0100
commit3ba621759c4fb20dc35724414cb59c665686d418 (patch)
tree78e9181788827f86d8d370b66405764616f7a0af /amiga/bitmap.c
parent2eeb2c07bfe836b66ad3804b5c5a373c65674e59 (diff)
downloadnetsurf-3ba621759c4fb20dc35724414cb59c665686d418.tar.gz
netsurf-3ba621759c4fb20dc35724414cb59c665686d418.tar.bz2
hide internal palette-mapped and true-colour bitmap conversion functions
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r--amiga/bitmap.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 3358265d1..69dc2dc30 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -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);
+ }
+}