FireBirdLib - Topfield TMS PVR TAP Programming Library
GetPIPPosition.c
Go to the documentation of this file.
1
#include "
FBLib_av.h
"
2
#include "
libFireBird.h
"
3
4
bool
GetPIPPosition
(
int
*North,
int
*South,
int
*East,
int
*West)
5
{
6
TRACEENTER
();
7
8
byte
*_isPipActive;
9
word *_pipX, *_pipY, *_pipW, *_pipH;
10
11
_isPipActive = (
byte
*)
FIS_vIsPipActive
();
12
_pipX = (word*)
FIS_vPipX
();
13
_pipY = (word*)
FIS_vPipY
();
14
_pipW = (word*)
FIS_vPipW
();
15
_pipH = (word*)
FIS_vPipH
();
16
17
if
(_isPipActive)
18
{
19
if
(*_isPipActive)
20
{
21
if
(West) *West = *_pipX;
22
if
(East) *East = *_pipX + *_pipW;
23
if
(North) *North = *_pipY;
24
if
(South) *South = *_pipY + *_pipH;
25
}
26
else
27
{
28
if
(West) *West = 0;
29
if
(East) *East = 0;
30
if
(North) *North = 0;
31
if
(South) *South = 0;
32
}
33
}
34
35
TRACEEXIT
();
36
return
(_isPipActive != 0);
37
}
FBLib_av.h
FIS_vIsPipActive
dword FIS_vIsPipActive(void)
Definition:
FIS_vIsPipActive.c:3
FIS_vPipH
dword FIS_vPipH(void)
Definition:
FIS_vPipH.c:3
FIS_vPipW
dword FIS_vPipW(void)
Definition:
FIS_vPipW.c:3
FIS_vPipX
dword FIS_vPipX(void)
Definition:
FIS_vPipX.c:3
FIS_vPipY
dword FIS_vPipY(void)
Definition:
FIS_vPipY.c:3
GetPIPPosition
bool GetPIPPosition(int *North, int *South, int *East, int *West)
Definition:
GetPIPPosition.c:4
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
av
GetPIPPosition.c
Generated on Fri Apr 29 2022 13:34:00 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3