FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuItemModifyColorPatch.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_TMSOSDMenu.h
"
3
4
bool
OSDMenuItemModifyColorPatch
(
int
ItemIndex, dword Color)
5
{
6
TRACEENTER
();
7
8
tMenu
*pMenu;
9
10
pMenu = &
Menu
[
CurrentMenuLevel
];
11
12
if
((ItemIndex < 0) || (ItemIndex >= pMenu->
NrItems
))
13
{
14
TRACEEXIT
();
15
return
FALSE;
16
}
17
18
pMenu->
Item
[ItemIndex].
ColorPatch
= Color;
19
20
ListDirty
= TRUE;
21
22
TRACEEXIT
();
23
return
TRUE;
24
}
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
OSDMenuItemModifyColorPatch
bool OSDMenuItemModifyColorPatch(int ItemIndex, dword Color)
Definition:
OSDMenuItemModifyColorPatch.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tItem::ColorPatch
dword ColorPatch
Definition:
FBLib_TMSOSDMenu.h:37
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::Item
tItem * Item
Definition:
FBLib_TMSOSDMenu.h:71
tMenu::NrItems
int NrItems
Definition:
FBLib_TMSOSDMenu.h:72
TMSOSDMenu
OSDMenuItemModifyColorPatch.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3