summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-20 23:32:34 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-20 23:32:34 +0000
commit239f999936663c9832bc7569133e694c1ce72741 (patch)
tree87dba34352fd8a6f8924ea3bfddd67999c3e44c3 /amiga/plotters.c
parent1724e2835028daf90de80b151ab8fd4c3064fd02 (diff)
parent750677795ba1ca41627edd68a4de24e0d6c07a20 (diff)
downloadnetsurf-239f999936663c9832bc7569133e694c1ce72741.tar.gz
netsurf-239f999936663c9832bc7569133e694c1ce72741.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
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;
}