diff options
author | Nick Clifton <nickc@redhat.com> | 2020-07-09 13:45:01 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-07-09 13:45:01 +0100 |
commit | d90171dec11cdde259564c1ca728043b7e82427e (patch) | |
tree | b5522fea01f73a63eb4209a628548caf29a1aa75 /binutils/resrc.c | |
parent | e3fdc001d359d6bcd033c1276c772e72d3f49078 (diff) | |
download | fsf-binutils-gdb-d90171dec11cdde259564c1ca728043b7e82427e.zip fsf-binutils-gdb-d90171dec11cdde259564c1ca728043b7e82427e.tar.gz fsf-binutils-gdb-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.c | 4 |
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 { |