Searched refs:clip (Results 1 – 1 of 1) sorted by relevance
1234 MS_BOOL clip_rectangle(GFX_Block clip,GFX_Block *dstBlock) in clip_rectangle() argument1236 if ((clip.x >= dstBlock->x + dstBlock->width) || in clip_rectangle()1237 ((clip.x + clip.width) < dstBlock->x) || in clip_rectangle()1238 (clip.y >= dstBlock->y + dstBlock->height) || in clip_rectangle()1239 ((clip.y + clip.height) < dstBlock->y)) in clip_rectangle()1242 if (clip.x > dstBlock->x) { in clip_rectangle()1243 dstBlock->width += dstBlock->x - clip.x; in clip_rectangle()1244 dstBlock->x = clip.x; in clip_rectangle()1247 if (clip.y > dstBlock->y) { in clip_rectangle()1248 dstBlock->height += dstBlock->y - clip.y; in clip_rectangle()[all …]