FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuUpdate.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
void
OSDMenuUpdate
(
bool
SuppressOSDSync)
4
{
5
TRACEENTER
();
6
7
//Create an OSD region if not already available
8
if
(
OSDRgn
== 0)
9
{
10
OSDDirty
= TRUE;
11
OSDRgn
= TAP_Osd_Create(0, 0, 720, 576, 0, 0);
12
TAP_ExitNormal();
13
}
14
15
//Draw background & grey rectangles
16
if
(
OSDDirty
)
17
{
18
OSDDrawBackground
();
19
OSDDirty
= FALSE;
20
OSDMenuLastCursor
=
LCT_NRCURSORS
;
21
TitleDirty
= TRUE;
22
ListDirty
= TRUE;
23
ButtonsDirty
= TRUE;
24
LogoDirty
= TRUE;
25
}
26
27
//Draw left and right title
28
if
(
TitleDirty
)
29
{
30
OSDDrawTitle
();
31
TitleDirty
= FALSE;
32
}
33
34
//Draw buttons
35
if
(
ButtonsDirty
)
36
{
37
OSDDrawButtons
();
38
ButtonsDirty
= FALSE;
39
LogoDirty
= TRUE;
40
}
41
42
//Draw software icon
43
if
(
LogoDirty
)
44
{
45
OSDDrawLogo
();
46
LogoDirty
= FALSE;
47
}
48
49
//Calculate TopIndex & SelectionIndex
50
OSDCalcIndices
();
51
52
//Draw selection bar
53
//Calculate max width of all item's texts
54
//Draw item numbers, icons & text
55
//Draw value text and arrows
56
if
(
ListDirty
)
57
{
58
OSDDrawScrollBar
();
59
switch
(
Menu
[
CurrentMenuLevel
].OSDMenuDisplayMode)
60
{
61
case
OMDM_Standard
:
62
case
OMDM_ListBox
:
OSDDrawList
();
break
;
63
case
OMDM_Text
:
64
case
OMDM_Memo
:
OSDDrawMemo
();
break
;
65
}
66
67
ListDirty
= FALSE;
68
}
69
70
//Show OSD
71
if
(!SuppressOSDSync) TAP_Osd_Sync();
72
73
TRACEEXIT
();
74
}
FBLib_TMSOSDMenu.h
OSDMenuLastCursor
tOSDMenuLastCursorType OSDMenuLastCursor
Definition:
OSDMenuInit.c:10
OSDDrawBackground
void OSDDrawBackground(void)
Definition:
OSDDrawBackground.c:3
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
OSDDrawButtons
void OSDDrawButtons(void)
Definition:
OSDDrawButtons.c:3
OSDDrawScrollBar
void OSDDrawScrollBar(void)
Definition:
OSDDrawScrollBar.c:3
OSDDirty
bool OSDDirty
Definition:
OSDMenuInit.c:5
OSDDrawLogo
void OSDDrawLogo(void)
Definition:
OSDDrawLogo.c:3
OSDCalcIndices
void OSDCalcIndices(void)
Definition:
OSDCalcIndices.c:4
OSDDrawList
void OSDDrawList(void)
Definition:
OSDDrawList.c:3
OMDM_Text
@ OMDM_Text
Definition:
FBLib_TMSOSDMenu.h:63
OMDM_Standard
@ OMDM_Standard
Definition:
FBLib_TMSOSDMenu.h:60
OMDM_Memo
@ OMDM_Memo
Definition:
FBLib_TMSOSDMenu.h:62
OMDM_ListBox
@ OMDM_ListBox
Definition:
FBLib_TMSOSDMenu.h:61
LCT_NRCURSORS
@ LCT_NRCURSORS
Definition:
FBLib_TMSOSDMenu.h:129
OSDDrawMemo
void OSDDrawMemo(void)
Definition:
OSDDrawMemo.c:3
OSDDrawTitle
void OSDDrawTitle(void)
Definition:
OSDDrawTitle.c:3
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
ListDirty
bool ListDirty
Definition:
FBLib_TMSOSDMenu.h:223
ButtonsDirty
bool ButtonsDirty
Definition:
FBLib_TMSOSDMenu.h:223
OSDRgn
word OSDRgn
Definition:
OSDMenuInit.c:4
TitleDirty
bool TitleDirty
Definition:
FBLib_TMSOSDMenu.h:223
LogoDirty
bool LogoDirty
Definition:
FBLib_TMSOSDMenu.h:223
OSDMenuUpdate
void OSDMenuUpdate(bool SuppressOSDSync)
Definition:
OSDMenuUpdate.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TMSOSDMenu
OSDMenuUpdate.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3