FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuDestroy.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
FBLib_TMSOSDMenu.h
"
3
4
void
OSDMenuDestroy
(
void
)
5
{
6
TRACEENTER
();
7
8
if
(
OSDRgn
)
9
{
10
TAP_Osd_Delete(
OSDRgn
);
11
TAP_Osd_Sync();
12
OSDRgn
= 0;
13
if
(
OSDMenuSelectionBarRgn
) TAP_Osd_Delete(
OSDMenuSelectionBarRgn
);
14
OSDMenuSelectionBarRgn
= 0;
15
OSDMenuLastCursor
=
LCT_NRCURSORS
;
16
}
17
if
((!
ProgressBarOSDRgn
) && (!
InfoBoxOSDRgn
) && (!
MessageBoxOSDRgn
) && (!
ColorPickerOSDRgn
)) TAP_EnterNormal();
18
if
(
Menu
[
CurrentMenuLevel
].Item)
19
{
20
TAP_MemFree(
Menu
[
CurrentMenuLevel
].Item);
21
Menu
[
CurrentMenuLevel
].
Item
= NULL;
22
}
23
24
if
(
Menu
[
CurrentMenuLevel
].MemoText)
25
{
26
TAP_MemFree(
Menu
[
CurrentMenuLevel
].MemoText);
27
Menu
[
CurrentMenuLevel
].
MemoText
= NULL;
28
}
29
30
OSDMenuFreeStdFonts
();
31
32
Menu
[
CurrentMenuLevel
].
CallbackProcedure
= NULL;
33
34
TRACEEXIT
();
35
}
FBLib_TMSOSDMenu.h
OSDMenuLastCursor
tOSDMenuLastCursorType OSDMenuLastCursor
Definition:
OSDMenuInit.c:10
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
OSDMenuFreeStdFonts
void OSDMenuFreeStdFonts(void)
Definition:
OSDMenuFreeStdFonts.c:3
MessageBoxOSDRgn
word MessageBoxOSDRgn
Definition:
OSDMenuInit.c:18
ProgressBarOSDRgn
word ProgressBarOSDRgn
Definition:
OSDMenuInit.c:23
InfoBoxOSDRgn
word InfoBoxOSDRgn
Definition:
OSDMenuInit.c:12
LCT_NRCURSORS
@ LCT_NRCURSORS
Definition:
FBLib_TMSOSDMenu.h:129
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
ColorPickerOSDRgn
word ColorPickerOSDRgn
Definition:
OSDMenuInit.c:27
OSDRgn
word OSDRgn
Definition:
OSDMenuInit.c:4
OSDMenuSelectionBarRgn
word OSDMenuSelectionBarRgn
Definition:
OSDMenuInit.c:4
OSDMenuDestroy
void OSDMenuDestroy(void)
Definition:
OSDMenuDestroy.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tMenu::CallbackProcedure
void(* CallbackProcedure)(tOSDCB OSDCBType, word OSDRgn)
Definition:
FBLib_TMSOSDMenu.h:104
tMenu::MemoText
char * MemoText
Definition:
FBLib_TMSOSDMenu.h:95
tMenu::Item
tItem * Item
Definition:
FBLib_TMSOSDMenu.h:71
TMSOSDMenu
OSDMenuDestroy.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3