FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuWaitSpinnerInit.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
void
OSDMenuWaitSpinnerInit
(
void
)
4
{
5
TRACEENTER
();
6
7
if
(
InfoBoxOSDRgn
&&
WaitSpinnerRgn
== 0)
8
{
9
WaitSpinnerRgn
= TAP_Osd_Create(0, 0,
WaitSpinnerWidth
,
WaitSpinnerItemHeight
, 0, OSD_Flag_MemRgn);
10
11
if
(
WaitSpinnerRgn
)
12
{
13
int
i;
14
15
TAP_Osd_FillBox(
WaitSpinnerRgn
, 0, 0,
WaitSpinnerWidth
,
WaitSpinnerItemHeight
, RGB(40, 40, 40));
16
17
for
(i = 0; i <
WaitSpinnerItems
; i++)
18
OSDMenuWaitSpinnerDrawItem
(
WaitSpinnerRgn
, i *
WaitSpinnerItemWidth
* 2,
WaitSpinnerItemColorBlank
);
19
20
TAP_Osd_Copy(
WaitSpinnerRgn
,
InfoBoxOSDRgn
, 0, 0,
WaitSpinnerWidth
,
WaitSpinnerItemHeight
, (
_InfoBox_Gd
.width -
WaitSpinnerWidth
) >> 1,
WaitSpinnerPosY
, FALSE);
21
TAP_Osd_Sync();
22
23
WaitSpinnerIndex
= 0;
24
WaitSpinnerTimeout
= TAP_GetTick() +
WaitSpinnerSpeed
;
25
}
26
}
27
28
TRACEEXIT
();
29
}
FBLib_TMSOSDMenu.h
WaitSpinnerItemColorBlank
#define WaitSpinnerItemColorBlank
Definition:
FBLib_TMSOSDMenu.h:25
WaitSpinnerSpeed
#define WaitSpinnerSpeed
Definition:
FBLib_TMSOSDMenu.h:24
WaitSpinnerTimeout
dword WaitSpinnerTimeout
Definition:
OSDMenuInit.c:35
WaitSpinnerWidth
#define WaitSpinnerWidth
Definition:
FBLib_TMSOSDMenu.h:22
OSDMenuWaitSpinnerDrawItem
void OSDMenuWaitSpinnerDrawItem(word rgn, dword x, dword rgb)
Definition:
OSDMenuWaitSpinnerDrawItem.c:3
WaitSpinnerItems
#define WaitSpinnerItems
Definition:
FBLib_TMSOSDMenu.h:19
InfoBoxOSDRgn
word InfoBoxOSDRgn
Definition:
OSDMenuInit.c:12
WaitSpinnerItemWidth
#define WaitSpinnerItemWidth
Definition:
FBLib_TMSOSDMenu.h:20
WaitSpinnerPosY
dword WaitSpinnerPosY
Definition:
OSDMenuInfoBoxShow.c:4
WaitSpinnerIndex
int WaitSpinnerIndex
Definition:
OSDMenuInit.c:34
_InfoBox_Gd
TYPE_GrData _InfoBox_Gd
WaitSpinnerItemHeight
#define WaitSpinnerItemHeight
Definition:
FBLib_TMSOSDMenu.h:21
WaitSpinnerRgn
word WaitSpinnerRgn
Definition:
OSDMenuInit.c:33
OSDMenuWaitSpinnerInit
void OSDMenuWaitSpinnerInit(void)
Definition:
OSDMenuWaitSpinnerInit.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TMSOSDMenu
OSDMenuWaitSpinnerInit.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3