aboutsummaryrefslogtreecommitdiff
path: root/binutils/windres.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/windres.c
parente3fdc001d359d6bcd033c1276c772e72d3f49078 (diff)
downloadgdb-d90171dec11cdde259564c1ca728043b7e82427e.zip
gdb-d90171dec11cdde259564c1ca728043b7e82427e.tar.gz
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/windres.c')
-rw-r--r--binutils/windres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/windres.c b/binutils/windres.c
index 427e982..5c83dab 100644
--- a/binutils/windres.c
+++ b/binutils/windres.c
@@ -527,6 +527,8 @@ extended_menuitems (const rc_menuitem *menuitems)
| MENUITEM_HELP
| MENUITEM_INACTIVE
| MENUITEM_MENUBARBREAK
+ | MENUITEM_BITMAP
+ | MENUITEM_OWNERDRAW
| MENUITEM_MENUBREAK))
!= 0)
return 1;