21 for(n = 1; n <= items >> 1; n <<= 1)
23 dx = (direction ==
X ? x + nw : x);
24 dy = (direction ==
X ? y : y + nh);
26 if((dx + nw) <= rw) xw = nw;
29 if((dy + nh) <= rh) xh = nh;
34 if(direction ==
X) nw <<= 1;
43 if(direction ==
X) w = n * w;
46 dx = (direction ==
X ? x + nw : x);
47 dy = (direction ==
X ? y : y + nh);
49 if((dx + w) <= rw) xw = w;
52 if((dy + h) <= rh) xh = h;
word GetOSDRegionHeight(word Region)
word GetOSDRegionWidth(word Region)
void OSDCopy(word rgn, dword x, dword y, dword w, dword h, word items, eCopyDirection direction)
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)