FireBirdLib - Topfield TMS PVR TAP Programming Library
TAP_Osd_Restorebox_Chk.c
Go to the documentation of this file.
1#define FB_DEBUG_CHK
2#define FB_LOG_ENTRY_LIB_PRINTF
3#include "libFireBird.h"
4
5void TAP_Osd_RestoreBox_Chk(char *Comment, word rgn, dword x, dword y, dword w, dword h, void *data)
6{
8
9 dword RgnH, RgnW;
10
11 if(Comment)
12 {
13 RgnH = GetOSDRegionHeight(rgn);
14 RgnW = GetOSDRegionWidth(rgn);
15
16 if(!isOSDRegionAlive(rgn)) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: rgn(%d) points to an undefined region @ %s", rgn, Comment);
17 if(x >= RgnW) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: x(%lu) out of range @ %s", x, Comment);
18 if(y >= RgnH) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: y(%lu) out of range @ %s", y, Comment);
19 if((x + w) > RgnW) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: x(%lu) + w(%lu) out of range @ %s", x, w, Comment);
20 if((y + h) > RgnH) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: y(%lu) + h(%lu) out of range @ %s", y, h, Comment);
21 if(data == NULL) LogEntryFBLibPrintf(TRUE, "TAP_Osd_RestoreBox_Chk Warning: trying to restore from NULL @ %s", Comment);
22 }
23
24 TAP_Osd_RestoreBox(rgn, x, y, w, h, data);
25
26 TRACEEXIT();
27}
word GetOSDRegionHeight(word Region)
word GetOSDRegionWidth(word Region)
void LogEntryFBLibPrintf(bool Console, char *format,...)
void TAP_Osd_RestoreBox_Chk(char *Comment, word rgn, dword x, dword y, dword w, dword h, void *data)
bool isOSDRegionAlive(word Region)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243