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:
@@ -175,10 +175,11 @@ boolean complain;
|
||||
}
|
||||
|
||||
void
|
||||
chainin_start_menu(window)
|
||||
chainin_start_menu(window, mbehavior)
|
||||
winid window;
|
||||
unsigned long mbehavior;
|
||||
{
|
||||
(*cibase->nprocs->win_start_menu)(cibase->ndata, window);
|
||||
(*cibase->nprocs->win_start_menu)(cibase->ndata, window, mbehavior);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -213,13 +213,14 @@ boolean complain;
|
||||
}
|
||||
|
||||
void
|
||||
chainout_start_menu(vp, window)
|
||||
chainout_start_menu(vp, window, mbehavior)
|
||||
void *vp;
|
||||
winid window;
|
||||
unsigned long mbehavior;
|
||||
{
|
||||
struct chainout_data *tdp = vp;
|
||||
|
||||
(*tdp->nprocs->win_start_menu)(window);
|
||||
(*tdp->nprocs->win_start_menu)(window, mbehavior);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -356,16 +356,18 @@ boolean complain;
|
||||
}
|
||||
|
||||
void
|
||||
trace_start_menu(vp, window)
|
||||
trace_start_menu(vp, window, mbehavior)
|
||||
void *vp;
|
||||
winid window;
|
||||
unsigned long mbehavior;
|
||||
{
|
||||
struct trace_data *tdp = vp;
|
||||
|
||||
fprintf(wc_tracelogf, "%sstart_menu(%d)\n", INDENT, window);
|
||||
fprintf(wc_tracelogf, "%sstart_menu(%d, %lu)\n", INDENT,
|
||||
window, mbehavior);
|
||||
|
||||
PRE;
|
||||
(*tdp->nprocs->win_start_menu)(tdp->ndata, window);
|
||||
(*tdp->nprocs->win_start_menu)(tdp->ndata, window, mbehavior);
|
||||
POST;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user