From fb9b171e325488dc9792ee0f3062f15d8ec597ee Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 1 Mar 2014 14:48:41 +0000 Subject: Disable the dither option if we're running on a screen which doesn't use it. --- amiga/gui_options.c | 5 +++++ resources/FatMessages | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/amiga/gui_options.c b/amiga/gui_options.c index d3f713060..b969eb8c8 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -406,6 +406,7 @@ void ami_gui_opts_open(void) BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE; BOOL disableanims, animspeeddisabled = FALSE, acceptlangdisabled = FALSE; BOOL scaleselected = nsoption_bool(scale_quality), scaledisabled = FALSE; + BOOL ditherdisable = TRUE; BOOL download_notify_disabled = FALSE; BOOL ptr_disable = FALSE; char animspeed[10]; @@ -446,6 +447,9 @@ void ami_gui_opts_open(void) screenmodeid = strtoul(nsoption_charp(screen_modeid),NULL,0); } + if(ami_plot_screen_is_palettemapped() == true) + ditherdisable = FALSE; + if(nsoption_bool(http_proxy) == true) { proxytype = nsoption_int(http_proxy_auth) + 1; @@ -907,6 +911,7 @@ void ami_gui_opts_open(void) LAYOUT_AddChild, gow->objects[GID_OPTS_DITHERQ] = ChooserObject, GA_ID, GID_OPTS_DITHERQ, GA_RelVerify, TRUE, + GA_Disabled, ditherdisable, CHOOSER_PopUp, TRUE, CHOOSER_LabelArray, ditheropts, CHOOSER_Selected, nsoption_int(dither_quality), diff --git a/resources/FatMessages b/resources/FatMessages index ff5a761d8..74f03e456 100644 --- a/resources/FatMessages +++ b/resources/FatMessages @@ -5681,11 +5681,11 @@ de.all.ScaleQuality:Skalieren hoher Qualität fr.all.ScaleQuality:Higher quality scaling it.all.ScaleQuality:Massima qualità di visualizzazione nl.all.ScaleQuality:Higher quality scaling -en.ami.DitherQuality:Dither quality (<= 8-bit modes only) -de.ami.DitherQuality:Dither quality (<= 8-bit modes only) -fr.ami.DitherQuality:Dither quality (<= 8-bit modes only) -it.ami.DitherQuality:Qualità dither (<= solo modi a 8-bit) -nl.ami.DitherQuality:Dither quality (<= 8-bit modes only) +en.ami.DitherQuality:Dither quality +de.ami.DitherQuality:Dither quality +fr.ami.DitherQuality:Dither quality +it.ami.DitherQuality:Qualità dither +nl.ami.DitherQuality:Dither quality en.ami.Low:Low de.ami.Low:Low fr.ami.Low:Low -- cgit v1.2.3