FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuScrollPageUp.c
Go to the documentation of this file.
1#include "FBLib_TMSOSDMenu.h"
2
4{
6
7 tMenu *pMenu;
8 int ret, x;
9
10 pMenu = &Menu[CurrentMenuLevel];
11
12 if((pMenu->CurrentSelection == 0) && pMenu->ScrollLoop)
13 {
15 }
16 else if(pMenu->CurrentSelection == pMenu->CurrentTopIndex)
17 {
18 x = pMenu->CurrentSelection - pMenu->NrLines;
19 if(x < 0) x = 0;
21 }
22 else
24
25 if(ret == -1)
26 {
27 TRACEEXIT();
28 return -1;
29 }
30
31 pMenu->CurrentSelection = ret;
32 ListDirty = TRUE;
33
34 TRACEEXIT();
35 return ret;
36}
tMenu Menu[NRMENULEVELS]
Definition: OSDMenuInit.c:6
dword CurrentMenuLevel
Definition: OSDMenuInit.c:7
bool ListDirty
int OSDMenuScrollPageUp(void)
int OSDMenuFindPreviousSelectableEntry(int CurrentSelection)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
int CurrentSelection
int CurrentTopIndex
bool ScrollLoop