summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-03-01 14:48:41 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-03-01 14:48:41 +0000
commitfb9b171e325488dc9792ee0f3062f15d8ec597ee (patch)
tree61eab92290452ebc01844b88bfe4956cb343fe39
parent6a558b293298fe1267c53ee4f6c42f8889ef581b (diff)
downloadnetsurf-fb9b171e325488dc9792ee0f3062f15d8ec597ee.tar.gz
netsurf-fb9b171e325488dc9792ee0f3062f15d8ec597ee.tar.bz2
Disable the dither option if we're running on a screen which doesn't use it.
-rwxr-xr-xamiga/gui_options.c5
-rw-r--r--resources/FatMessages10
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