summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-05 16:22:41 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-05 16:22:41 +0100
commita423eb712dc387b879f62826fd36325110470ec8 (patch)
tree1228de58e07669fee795a5c3b37e9402371eb79f
parent25f1acb504ee7de4690fb83ba4a39a75c8539273 (diff)
downloadnetsurf-a423eb712dc387b879f62826fd36325110470ec8.tar.gz
allow setting dithering quality 0-2
-rw-r--r--amiga/bitmap.c1
-rw-r--r--amiga/options.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 61d56033c..8f12a468f 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -486,6 +486,7 @@ struct BitMap *ami_bitmap_get_palettemapped(struct bitmap *bitmap,
SetDTAttrs(bitmap->dto, NULL, NULL,
PDTA_Screen, scrn,
PDTA_ScaleQuality, nsoption_bool(scale_quality),
+ PDTA_DitherQuality, nsoption_int(dither_quality),
TAG_DONE);
if((bitmap->width != width) || (bitmap->height != height)) {
diff --git a/amiga/options.h b/amiga/options.h
index 287b7ffc4..41bf104f5 100644
--- a/amiga/options.h
+++ b/amiga/options.h
@@ -49,6 +49,7 @@
int download_task_pri; \
bool faster_scroll; \
bool scale_quality; \
+ int dither_quality; \
bool ask_overwrite; \
int printer_unit; \
int print_scale; \
@@ -109,6 +110,7 @@
.download_task_pri = -1, \
.faster_scroll = true, \
.scale_quality = false, \
+ .dither_quality = 1, \
.ask_overwrite = true, \
.printer_unit = 0, \
.print_scale = 100, \
@@ -168,6 +170,7 @@
{ "download_task_pri", OPTION_INTEGER, &nsoptions.download_task_pri}, \
{ "faster_scroll", OPTION_BOOL, &nsoptions.faster_scroll}, \
{ "scale_quality", OPTION_BOOL, &nsoptions.scale_quality}, \
+{ "dither_quality", OPTION_INTEGER, &nsoptions.dither_quality}, \
{ "ask_overwrite", OPTION_BOOL, &nsoptions.ask_overwrite}, \
{ "printer_unit", OPTION_INTEGER, &nsoptions.printer_unit}, \
{ "print_scale", OPTION_INTEGER, &nsoptions.print_scale}, \