RISC OS: Core window: X scroll is positive, Y scroll is negative.
This commit is contained in:
parent
342b65fd76
commit
01485d06ba
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue