FireBirdLib - Topfield TMS PVR TAP Programming Library
TAP_Osd_Create_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
5int TAP_Osd_Create_Chk(char *Comment, dword x, dword y, dword w, dword h, byte lutIdx, int flag)
6{
8
9 int ret;
10
11 if(Comment)
12 {
13 if(x > 719) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: x(%lu) out of range @ %s", x, Comment);
14 if(y > 575) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: y(%lu) out of range @ %s", y, Comment);
15 if((x + w) > 720) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: x(%lu) + w(%lu) out of range @ %s", x, w, Comment);
16 if((y + h) > 576) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: y(%lu) + h(%lu) out of range @ %s", y, h, Comment);
17 }
18
19 ret = TAP_Osd_Create(x, y, w, h, lutIdx, flag);
20
21 if(Comment && ret < 128) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: TAP_Osd_Create() returned %d @ %s", ret, Comment);
22
23 TRACEEXIT();
24 return ret;
25}
void LogEntryFBLibPrintf(bool Console, char *format,...)
int TAP_Osd_Create_Chk(char *Comment, dword x, dword y, dword w, dword h, byte lutIdx, int flag)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243