forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user