summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-17 23:40:50 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-17 23:40:50 +0000
commitb3aa313e8421a26489719ecb4626cc6837e0079c (patch)
treef7c854ad66fad54740ace7b4decec685a1541af4 /amiga/plotters.c
parent132be1eed23315c8fbd72acaa06ccdec62363c73 (diff)
downloadnetsurf-b3aa313e8421a26489719ecb4626cc6837e0079c.tar.gz
netsurf-b3aa313e8421a26489719ecb4626cc6837e0079c.tar.bz2
misc amiga fixes re font plotting
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r--amiga/plotters.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index b459dcc7e..d241dd408 100644
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -94,7 +94,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
* Height is set to screen width to give enough space for thumbnails *
* Also applies to the further gfx/layers functions and memory below */
- ULONG depth = 32;
+ int depth = 32;
struct BitMap *friend = NULL;
depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH);
@@ -112,6 +112,8 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
if(depth > 8) depth = 8;
#endif
+ if(palette_mapped == true) nsoption_set_bool(font_antialiasing, false);
+
if(!width) width = nsoption_int(redraw_tile_size_x);
if(!height) height = nsoption_int(redraw_tile_size_y);
gg->width = width;
@@ -429,13 +431,10 @@ static bool ami_text(int x, int y, const char *text, size_t length,
LOG("[ami_plotter] Entered ami_text()");
#endif
- bool aa = true;
-
- if((nsoption_bool(font_antialiasing) == false) || (palette_mapped == true))
- aa = false;
+ if(__builtin_expect(ami_nsfont == NULL, 0)) return false;
ami_plot_setapen(glob->rp, fstyle->foreground);
- ami_nsfont->text(glob->rp, text, length, fstyle, x, y, aa);
+ ami_nsfont->text(glob->rp, text, length, fstyle, x, y, nsoption_bool(font_antialiasing));
return true;
}