window port interface change - add mbehavior flags to start_menu()
Provide a way to communicate additional behaviors and/or appearances desired from NetHack window port menus. This is foundation work for changes to follow at a future date.
This commit is contained in:
@@ -663,7 +663,7 @@ gnome_display_file(const char *filename, BOOLEAN_P must_exist)
|
||||
be used for menus.
|
||||
*/
|
||||
void
|
||||
gnome_start_menu(winid wid)
|
||||
gnome_start_menu(winid wid, unsigned long mbehavior)
|
||||
{
|
||||
if (wid != -1) {
|
||||
if (gnome_windowlist[wid].win == NULL
|
||||
|
||||
@@ -53,7 +53,7 @@ void gnome_destroy_nhwindow(winid wid);
|
||||
void gnome_curs(winid wid, int x, int y);
|
||||
void gnome_putstr(winid wid, int attr, const char *text);
|
||||
void gnome_display_file(const char *filename, BOOLEAN_P must_exist);
|
||||
void gnome_start_menu(winid wid);
|
||||
void gnome_start_menu(winid wid, unsigned long mbehavior);
|
||||
void gnome_add_menu(winid wid, int glyph, const ANY_P *identifier,
|
||||
CHAR_P accelerator, CHAR_P group_accel, int attr,
|
||||
const char *str, BOOLEAN_P presel);
|
||||
|
||||
Reference in New Issue
Block a user