FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuColorPickerDestroy.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
void
OSDMenuColorPickerDestroy
(
void
)
4
{
5
TRACEENTER
();
6
7
tOSDMapInfo
*OSDMapInfo;
8
9
if
(
ColorPickerOSDRgn
)
10
{
11
TAP_Osd_Delete(
ColorPickerOSDRgn
);
12
ColorPickerOSDRgn
= 0;
13
14
if
(
InfoBoxSaveArea
)
15
{
16
if
(
MyOSDRgn
)
17
{
18
OSDMapInfo = (
tOSDMapInfo
*)
FIS_vOsdMap
();
19
if
(OSDMapInfo)
20
TAP_Osd_RestoreBox(
MyOSDRgn
,
InfoBoxSaveAreaX
- OSDMapInfo[
MyOSDRgn
].x,
InfoBoxSaveAreaY
- OSDMapInfo[
MyOSDRgn
].y,
_InfoBox_Gd
.width,
_InfoBox_Gd
.height,
InfoBoxSaveArea
);
21
}
22
else
if
(
OSDRgn
) TAP_Osd_RestoreBox(
OSDRgn
,
InfoBoxSaveAreaX
,
InfoBoxSaveAreaY
,
_InfoBox_Gd
.width,
_InfoBox_Gd
.height,
InfoBoxSaveArea
);
23
24
TAP_MemFree(
InfoBoxSaveArea
);
25
InfoBoxSaveArea
= NULL;
26
MyOSDRgn
= 0;
27
}
28
29
TAP_Osd_Sync();
30
31
if
((!
OSDRgn
) && (!
InfoBoxOSDRgn
) && (!
MessageBoxOSDRgn
) && (!
ProgressBarOSDRgn
)) TAP_EnterNormal();
32
}
33
34
TRACEEXIT
();
35
}
FBLib_TMSOSDMenu.h
InfoBoxSaveAreaX
dword InfoBoxSaveAreaX
Definition:
OSDMenuInit.c:15
MessageBoxOSDRgn
word MessageBoxOSDRgn
Definition:
OSDMenuInit.c:18
ProgressBarOSDRgn
word ProgressBarOSDRgn
Definition:
OSDMenuInit.c:23
InfoBoxOSDRgn
word InfoBoxOSDRgn
Definition:
OSDMenuInit.c:12
_InfoBox_Gd
TYPE_GrData _InfoBox_Gd
InfoBoxSaveArea
byte * InfoBoxSaveArea
Definition:
OSDMenuInit.c:14
ColorPickerOSDRgn
word ColorPickerOSDRgn
Definition:
OSDMenuInit.c:27
OSDRgn
word OSDRgn
Definition:
OSDMenuInit.c:4
MyOSDRgn
word MyOSDRgn
Definition:
OSDMenuInit.c:4
InfoBoxSaveAreaY
dword InfoBoxSaveAreaY
Definition:
FBLib_TMSOSDMenu.h:234
FIS_vOsdMap
dword FIS_vOsdMap(void)
Definition:
FIS_vOSDMap.c:3
OSDMenuColorPickerDestroy
void OSDMenuColorPickerDestroy(void)
Definition:
OSDMenuColorPickerDestroy.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tOSDMapInfo
Definition:
libFireBird.h:275
TMSOSDMenu
OSDMenuColorPickerDestroy.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3