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
4bool GetPIPPosition(int *North, int *South, int *East, int *West)
5{
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}
dword FIS_vIsPipActive(void)
dword FIS_vPipH(void)
Definition: FIS_vPipH.c:3
dword FIS_vPipW(void)
Definition: FIS_vPipW.c:3
dword FIS_vPipX(void)
Definition: FIS_vPipX.c:3
dword FIS_vPipY(void)
Definition: FIS_vPipY.c:3
bool GetPIPPosition(int *North, int *South, int *East, int *West)
Definition: GetPIPPosition.c:4
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243