2#define FB_LOG_ENTRY_LIB_PRINTF
20int TAP_Osd_Copy_Chk(
char *Comment, word srcRgnNum, word dstRgnNum, dword srcX, dword srcY, dword w, dword h, dword dstX, dword dstY,
bool sprite)
32 if(srcX >= RgnW)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: srcX(%lu) >= srcRgnW(%lu) @ %s", srcX, RgnW, Comment);
33 if(srcY >= RgnH)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: srcY(%lu) >= srcRgnH(%lu) @ %s", srcY, RgnH, Comment);
34 if((srcX + w) > RgnW)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: (srcX(%lu) + w(%lu)) > srcRgnW(%lu) @ %s", srcX, w, RgnW, Comment);
35 if((srcY + h) > RgnH)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: (srcY(%lu) + h(%lu)) > srcRgnH(%lu) @ %s", srcY, h, RgnH, Comment);
43 if(dstX >= RgnW)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: dstX(%lu) >= srcRgnW(%lu) @ %s", dstX, RgnW, Comment);
44 if(srcY >= RgnH)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: srcY(%lu) >= srcRgnH(%lu) @ %s", srcY, RgnH, Comment);
45 if((dstX + w) > RgnW)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: (dstX(%lu) + w(%lu)) > dstRgnW(%lu) @ %s", dstX, w, RgnW, Comment);
46 if((dstY + h) > RgnH)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: (dstY(%lu) + h(%lu)) > dstRgnH(%lu) @ %s", dstY, h, RgnH, Comment);
49 ret = TAP_Osd_Copy(srcRgnNum, dstRgnNum, srcX, srcY, w, h, dstX, dstY, sprite);
51 if(Comment && ret)
LogEntryFBLibPrintf(TRUE,
"TAP_Osd_Copy_Chk Warning: TAP_Osd_Copy() returned %d @ %s", ret, Comment);
word GetOSDRegionHeight(word Region)
word GetOSDRegionWidth(word Region)
void LogEntryFBLibPrintf(bool Console, char *format,...)
int TAP_Osd_Copy_Chk(char *Comment, word srcRgnNum, word dstRgnNum, dword srcX, dword srcY, dword w, dword h, dword dstX, dword dstY, bool sprite)