allow setting dithering quality 0-2

This commit is contained in:
Chris Young 2012-08-05 16:22:41 +01:00
parent 25f1acb504
commit a423eb712d
2 changed files with 4 additions and 0 deletions

View File

@ -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)) {

View File

@ -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}, \