diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-12 11:30:44 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-12 11:30:44 +0100 |
commit | 5ac9c7128ad67e3e678ca6709174b8f77bcc1875 (patch) | |
tree | 71b690ae1ea64363c44dbcf7906ff03097bd5050 /amiga/plotters.c | |
parent | c7766fddff000614de3e1467e39cdfb0301a022d (diff) | |
download | netsurf-5ac9c7128ad67e3e678ca6709174b8f77bcc1875.tar.gz netsurf-5ac9c7128ad67e3e678ca6709174b8f77bcc1875.tar.bz2 |
allow font anti-aliasing to be switched off in true-colour modes
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 9d86fdeb2..dc0ae2f64 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -548,8 +548,13 @@ 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 == false)) + aa = false; + ami_plot_setapen(fstyle->foreground); - ami_unicode_text(glob->rp, text, length, fstyle, x, y, !palette_mapped); + ami_unicode_text(glob->rp, text, length, fstyle, x, y, aa); return true; } |