From 0ce170c18e971121e54ac60c863b523bc5874516 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 28 Jan 2016 00:11:09 +0000 Subject: Disable the DPI gadget if in bitmap/diskfont fonts mode Diskfont renders all font sizes at 72dpi. --- amiga/gui_options.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'amiga') 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); -- cgit v1.2.3