summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-28 00:11:09 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-28 00:11:09 +0000
commit0ce170c18e971121e54ac60c863b523bc5874516 (patch)
tree782ea9e0a2f695d0fe0103ca1cd53166f950f679 /amiga
parentee640b80bc0a0bbe2dd5cd67f9d6381c4b63cc8f (diff)
downloadnetsurf-0ce170c18e971121e54ac60c863b523bc5874516.tar.gz
netsurf-0ce170c18e971121e54ac60c863b523bc5874516.tar.bz2
Disable the DPI gadget if in bitmap/diskfont fonts mode
Diskfont renders all font sizes at 72dpi.
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui_options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c
index cbd393eaa..ccd4781e4 100755
--- a/amiga/gui_options.c
+++ b/amiga/gui_options.c
@@ -1092,6 +1092,7 @@ void ami_gui_opts_open(void)
INTEGER_Minimum, 60,
INTEGER_Maximum, 150,
INTEGER_Arrows, TRUE,
+ GA_Disabled, nsoption_bool(bitmap_fonts),
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObj,
@@ -2249,7 +2250,12 @@ BOOL ami_gui_opts_event(void)
IDoMethod(gow->objects[GID_OPTS_FONT_FANTASY],
GFONT_REQUEST,gow->win);
break;
-
+#ifndef __amigaos4__
+ case GID_OPTS_FONT_BITMAP:
+ RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_DPI_Y],
+ gow->win, NULL, GA_Disabled, code, TAG_DONE);
+ break;
+#endif
case GID_OPTS_DLDIR:
IDoMethod(gow->objects[GID_OPTS_DLDIR],
GFILE_REQUEST,gow->win);