- July 1, 2010
- 247
- 36
- Home Country
-
Belgium
Small adjustment, delete the + 1 (marked red).
Code:
private void OnPageUp()
{
int Steps;
if (_singleChannelView)
Steps = _channelCount; // all available rows
else
{
if (_guideContinuousScroll)
{
Steps = _channelCount; // all available rows
}
else
{
// If we're on the first channel in the guide then allow one step to get back to the end of the guide.
if (_channelOffset == 0 && _cursorX == 0)
{
Steps = 1;
}
else
{
// only number of additional avail channels
Steps = Math.Min(_channelOffset + _cursorX [COLOR="Red"][B]+ 1[/B][/COLOR], _channelCount);
}
}
}
UnFocus();
for (int i = 0; i < Steps; ++i)
{
OnUp(true, true);
}
Correct();
Update(false);
SetFocus();
}