All layers allow out of right side and bottom side.
And hardware cursor want to support outside of right and bottom.
Change-Id: I27d64b2e12326fbad436f291a9fb5092538428f9
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
return -EINVAL;
}
- if ((area_par->xpos + area_par->xsize > screen->mode.xres) ||
- (area_par->ypos + area_par->ysize > screen->mode.yres) ||
- (area_par->xsize <= 0) || (area_par->ysize <= 0)) {
+ if ((area_par->xpos >= screen->mode.xres) ||
+ (area_par->ypos >= screen->mode.yres) ||
+ ((area_par->xsize <= 0) || (area_par->ysize <= 0))) {
pr_warn("check config var fail 1:\n"
"xpos=%d,xsize=%d,xres=%d\n"
"ypos=%d,ysize=%d,yres=%d\n",