Lines Matching refs:modded
179 struct fb_fillrect modded; in unifb_fillrect() local
190 memcpy(&modded, region, sizeof(struct fb_fillrect)); in unifb_fillrect()
192 if (!modded.width || !modded.height || in unifb_fillrect()
193 modded.dx >= vxres || modded.dy >= vyres) in unifb_fillrect()
196 if (modded.dx + modded.width > vxres) in unifb_fillrect()
197 modded.width = vxres - modded.dx; in unifb_fillrect()
198 if (modded.dy + modded.height > vyres) in unifb_fillrect()
199 modded.height = vyres - modded.dy; in unifb_fillrect()
201 unifb_prim_fillrect(info, &modded); in unifb_fillrect()
285 struct fb_copyarea modded; in unifb_copyarea() local
287 modded.sx = area->sx; in unifb_copyarea()
288 modded.sy = area->sy; in unifb_copyarea()
289 modded.dx = area->dx; in unifb_copyarea()
290 modded.dy = area->dy; in unifb_copyarea()
291 modded.width = area->width; in unifb_copyarea()
292 modded.height = area->height; in unifb_copyarea()
302 if (!modded.width || !modded.height || in unifb_copyarea()
303 modded.sx >= vxres || modded.sy >= vyres || in unifb_copyarea()
304 modded.dx >= vxres || modded.dy >= vyres) in unifb_copyarea()
307 if (modded.sx + modded.width > vxres) in unifb_copyarea()
308 modded.width = vxres - modded.sx; in unifb_copyarea()
309 if (modded.dx + modded.width > vxres) in unifb_copyarea()
310 modded.width = vxres - modded.dx; in unifb_copyarea()
311 if (modded.sy + modded.height > vyres) in unifb_copyarea()
312 modded.height = vyres - modded.sy; in unifb_copyarea()
313 if (modded.dy + modded.height > vyres) in unifb_copyarea()
314 modded.height = vyres - modded.dy; in unifb_copyarea()
316 unifb_prim_copyarea(info, &modded); in unifb_copyarea()