aboutsummaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
committerNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
commitd90171dec11cdde259564c1ca728043b7e82427e (patch)
treeb5522fea01f73a63eb4209a628548caf29a1aa75 /binutils/resrc.c
parente3fdc001d359d6bcd033c1276c772e72d3f49078 (diff)
downloadbinutils-d90171dec11cdde259564c1ca728043b7e82427e.zip
binutils-d90171dec11cdde259564c1ca728043b7e82427e.tar.gz
binutils-d90171dec11cdde259564c1ca728043b7e82427e.tar.bz2
Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags.
binutils* rclex.c: Add OWNERDRAW keyword. * rcparse.y: Add OWNERDRAW token. (menuitem_flag) Add BITMAP and OWNERDRAW entries. * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and BITMAP flags. * windres.c (extended_menuitems): Likewise. * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r--binutils/resrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c
index a875c3a..5a6336e 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -2841,6 +2841,10 @@ write_rc_menuitems (FILE *e, const rc_menuitem *menuitems, int menuex,
fprintf (e, ", MENUBARBREAK");
if ((mi->type & MENUITEM_MENUBREAK) != 0)
fprintf (e, ", MENUBREAK");
+ if ((mi->type & MENUITEM_OWNERDRAW) != 0)
+ fprintf (e, ", OWNERDRAW");
+ if ((mi->type & MENUITEM_BITMAP) != 0)
+ fprintf (e, ", BITMAP");
}
else
{