Disable the DPI gadget if in bitmap/diskfont fonts mode

Diskfont renders all font sizes at 72dpi.
This commit is contained in:
Chris Young 2016-01-28 00:11:09 +00:00
parent ee640b80bc
commit 0ce170c18e

View File

@ -1092,6 +1092,7 @@ void ami_gui_opts_open(void)
INTEGER_Minimum, 60, INTEGER_Minimum, 60,
INTEGER_Maximum, 150, INTEGER_Maximum, 150,
INTEGER_Arrows, TRUE, INTEGER_Arrows, TRUE,
GA_Disabled, nsoption_bool(bitmap_fonts),
IntegerEnd, IntegerEnd,
CHILD_WeightedWidth, 0, CHILD_WeightedWidth, 0,
CHILD_Label, LabelObj, CHILD_Label, LabelObj,
@ -2249,7 +2250,12 @@ BOOL ami_gui_opts_event(void)
IDoMethod(gow->objects[GID_OPTS_FONT_FANTASY], IDoMethod(gow->objects[GID_OPTS_FONT_FANTASY],
GFONT_REQUEST,gow->win); GFONT_REQUEST,gow->win);
break; 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: case GID_OPTS_DLDIR:
IDoMethod(gow->objects[GID_OPTS_DLDIR], IDoMethod(gow->objects[GID_OPTS_DLDIR],
GFILE_REQUEST,gow->win); GFILE_REQUEST,gow->win);