summaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-04-15 14:12:41 +0000
committerNick Clifton <nickc@redhat.com>2002-04-15 14:12:41 +0000
commit45b99827916a4cbbf1b721ff346e69255550899b (patch)
treecfa480422fb9c85db2bfca51b5cb3d3ebdc1a2c7 /binutils/resrc.c
parent272423870a26d8a7cabfc48b10b6f2b8c365e7b5 (diff)
downloadbinutils-gdb-45b99827916a4cbbf1b721ff346e69255550899b.tar.gz
Allow two to five parameter in FONT statement of DIALOGEX resources.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r--binutils/resrc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c
index 773e08ab716..96de59c3f12 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -2087,8 +2087,11 @@ write_rc_dialog (e, dialog)
unicode_print (e, dialog->font, -1);
fprintf (e, "\"");
if (dialog->ex != NULL
- && (dialog->ex->weight != 0 || dialog->ex->italic != 0))
- fprintf (e, ", %d, %d", dialog->ex->weight, dialog->ex->italic);
+ && (dialog->ex->weight != 0
+ || dialog->ex->italic != 0
+ || dialog->ex->charset != 1))
+ fprintf (e, ", %d, %d, %d",
+ dialog->ex->weight, dialog->ex->italic, dialog->ex->charset);
fprintf (e, "\n");
}