adjustScrollingOffset

Adjusts offset (aka _scrollX or _scrollY) in scrolling so the selected character is visible TODO: FIX THIS

Arguemnts: * selected is the character on which the cursor is. If it's >lineWidth, selected=lineWidth * size is the width/height (depending on if it's horizontal or vertical scrolling) of the space where the line is to be displayed * offset is the variable storing the offset (_xOffset or _yOffset)

void
adjustScrollingOffset
(
ref uinteger selected
,
uinteger size
,
uinteger lineWidth
,
ref uinteger offset
)

Meta