RISC OS: Core window: X scroll is positive, Y scroll is negative.

This commit is contained in:
Michael Drake 2019-08-03 16:40:05 +01:00
parent 342b65fd76
commit 01485d06ba
1 changed files with 3 additions and 3 deletions

View File

@ -848,7 +848,7 @@ ro_cw_get_scroll(struct core_window *cw, int *x, int *y)
}
*x = state.xscroll / 2;
*y = state.yscroll / 2;
*y = -state.yscroll / 2;
return NSERROR_OK;
}
@ -872,7 +872,7 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y)
return NSERROR_INVALID;
}
state.xscroll = -x * 2;
state.xscroll = x * 2;
state.yscroll = -y * 2;
ro_cw_open(PTR_WIMP_OPEN(&state));