FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuSelectTopItem.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
bool
OSDMenuSelectTopItem
(
int
TopIndex)
4
{
5
TRACEENTER
();
6
7
tMenu
*pMenu;
8
9
pMenu = &
Menu
[
CurrentMenuLevel
];
10
11
if
(pMenu->
NrItems
== 0)
12
{
13
TRACEEXIT
();
14
return
FALSE;
15
}
16
17
if
(TopIndex < 0) TopIndex = 0;
18
if
(TopIndex >= (
int
)pMenu->
NrItems
) TopIndex = (int)pMenu->
NrItems
- 1;
19
20
if
(TopIndex != (
int
)pMenu->
CurrentTopIndex
)
21
{
22
pMenu->
CurrentTopIndex
= TopIndex;
23
ListDirty
= TRUE;
24
}
25
26
TRACEEXIT
();
27
return
TRUE;
28
}
FBLib_TMSOSDMenu.h
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
ListDirty
bool ListDirty
Definition:
FBLib_TMSOSDMenu.h:223
OSDMenuSelectTopItem
bool OSDMenuSelectTopItem(int TopIndex)
Definition:
OSDMenuSelectTopItem.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::CurrentTopIndex
int CurrentTopIndex
Definition:
FBLib_TMSOSDMenu.h:75
tMenu::NrItems
int NrItems
Definition:
FBLib_TMSOSDMenu.h:72
TMSOSDMenu
OSDMenuSelectTopItem.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3