be more consistent with coordinates

This commit is contained in:
nhmall
2022-07-02 09:10:03 -04:00
parent 0bd5b3d39e
commit 3004cf2d34
74 changed files with 831 additions and 746 deletions

View File

@@ -69,7 +69,7 @@ void trace_print_glyph(void *,winid, coordxy, coordxy,
void trace_raw_print(void *,const char *);
void trace_raw_print_bold(void *,const char *);
int trace_nhgetch(void *);
int trace_nh_poskey(void *,int *, int *, int *);
int trace_nh_poskey(void *,coordxy *, coordxy *, int *);
void trace_nhbell(void *);
int trace_doprev_message(void *);
char trace_yn_function(void *,const char *, const char *, char);
@@ -724,8 +724,8 @@ trace_nhgetch(void *vp)
int
trace_nh_poskey(
void *vp,
int *x,
int *y,
coordxy *x,
coordxy *y,
int *mod)
{
struct trace_data *tdp = vp;
@@ -742,7 +742,8 @@ trace_nh_poskey(
} else {
sprintf(buf, "(%d)", rv);
}
fprintf(wc_tracelogf, "%s=> %s (%d, %d, %d)\n", INDENT, buf, *x, *y,
fprintf(wc_tracelogf, "%s=> %s (%d, %d, %d)\n", INDENT, buf,
(int) *x, (int) *y,
*mod);
return rv;