Disable the dither option if we're running on a screen which doesn't use it.

This commit is contained in:
Chris Young 2014-03-01 14:48:41 +00:00
parent 6a558b2932
commit fb9b171e32
2 changed files with 10 additions and 5 deletions

View File

@ -406,6 +406,7 @@ void ami_gui_opts_open(void)
BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE; BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE;
BOOL disableanims, animspeeddisabled = FALSE, acceptlangdisabled = FALSE; BOOL disableanims, animspeeddisabled = FALSE, acceptlangdisabled = FALSE;
BOOL scaleselected = nsoption_bool(scale_quality), scaledisabled = FALSE; BOOL scaleselected = nsoption_bool(scale_quality), scaledisabled = FALSE;
BOOL ditherdisable = TRUE;
BOOL download_notify_disabled = FALSE; BOOL download_notify_disabled = FALSE;
BOOL ptr_disable = FALSE; BOOL ptr_disable = FALSE;
char animspeed[10]; char animspeed[10];
@ -446,6 +447,9 @@ void ami_gui_opts_open(void)
screenmodeid = strtoul(nsoption_charp(screen_modeid),NULL,0); screenmodeid = strtoul(nsoption_charp(screen_modeid),NULL,0);
} }
if(ami_plot_screen_is_palettemapped() == true)
ditherdisable = FALSE;
if(nsoption_bool(http_proxy) == true) if(nsoption_bool(http_proxy) == true)
{ {
proxytype = nsoption_int(http_proxy_auth) + 1; 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, LAYOUT_AddChild, gow->objects[GID_OPTS_DITHERQ] = ChooserObject,
GA_ID, GID_OPTS_DITHERQ, GA_ID, GID_OPTS_DITHERQ,
GA_RelVerify, TRUE, GA_RelVerify, TRUE,
GA_Disabled, ditherdisable,
CHOOSER_PopUp, TRUE, CHOOSER_PopUp, TRUE,
CHOOSER_LabelArray, ditheropts, CHOOSER_LabelArray, ditheropts,
CHOOSER_Selected, nsoption_int(dither_quality), CHOOSER_Selected, nsoption_int(dither_quality),

View File

@ -5681,11 +5681,11 @@ de.all.ScaleQuality:Skalieren hoher Qualität
fr.all.ScaleQuality:Higher quality scaling fr.all.ScaleQuality:Higher quality scaling
it.all.ScaleQuality:Massima qualità di visualizzazione it.all.ScaleQuality:Massima qualità di visualizzazione
nl.all.ScaleQuality:Higher quality scaling nl.all.ScaleQuality:Higher quality scaling
en.ami.DitherQuality:Dither quality (<= 8-bit modes only) en.ami.DitherQuality:Dither quality
de.ami.DitherQuality:Dither quality (<= 8-bit modes only) de.ami.DitherQuality:Dither quality
fr.ami.DitherQuality:Dither quality (<= 8-bit modes only) fr.ami.DitherQuality:Dither quality
it.ami.DitherQuality:Qualità dither (<= solo modi a 8-bit) it.ami.DitherQuality:Qualità dither
nl.ami.DitherQuality:Dither quality (<= 8-bit modes only) nl.ami.DitherQuality:Dither quality
en.ami.Low:Low en.ami.Low:Low
de.ami.Low:Low de.ami.Low:Low
fr.ami.Low:Low fr.ami.Low:Low