wrappedBlock += startRes / cwidth;
int startOffset = startRes % cwidth; // in case start is scrolled right
// from 0
- res = wrappedBlock * cwidth
- + Math.min(cwidth - 1, startOffset + x / av.getCharWidth());
+ res = wrappedBlock * cwidth + startOffset
+ + +Math.min(cwidth - 1, x / av.getCharWidth());
}
else
{
wrappedBlock += startRes / cwidth;
// allow for wrapped view scrolled right (possible from Overview)
int startOffset = startRes % cwidth;
- res = wrappedBlock * cwidth
- + Math.min(cwidth - 1, startOffset + x / av.getCharWidth());
+ res = wrappedBlock * cwidth + startOffset
+ + +Math.min(cwidth - 1, x / av.getCharWidth());
}
else
{