diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-12 22:07:57 +0200 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-12 22:07:57 +0200 | 
| commit | 18122019972ca639ee3b581257e3a63ff7c8efeb (patch) | |
| tree | 52f7223e7c63f43322f3eee4722743e12190a19f /drivers/video/cfb_console.c | |
| parent | 90639feaa0d66a204f9d03a325ab14e2f97f6cbb (diff) | |
| parent | 785881f775252940185e10fbb2d5299c9ffa6bce (diff) | |
| download | olio-uboot-2014.01-18122019972ca639ee3b581257e3a63ff7c8efeb.tar.xz olio-uboot-2014.01-18122019972ca639ee3b581257e3a63ff7c8efeb.zip | |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts:
	drivers/video/exynos_fb.c
Diffstat (limited to 'drivers/video/cfb_console.c')
| -rw-r--r-- | drivers/video/cfb_console.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 26f673a96..61e1058ad 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -1515,13 +1515,6 @@ int video_display_bitmap(ulong bmp_image, int x, int y)  	padded_line = (((width * bpp + 7) / 8) + 3) & ~0x3; -	/* -	 * Just ignore elements which are completely beyond screen -	 * dimensions. -	 */ -	if ((x >= VIDEO_VISIBLE_COLS) || (y >= VIDEO_VISIBLE_ROWS)) -		return 0; -  #ifdef CONFIG_SPLASH_SCREEN_ALIGN  	if (x == BMP_ALIGN_CENTER)  		x = max(0, (VIDEO_VISIBLE_COLS - width) / 2); @@ -1534,6 +1527,13 @@ int video_display_bitmap(ulong bmp_image, int x, int y)  		y = max(0, VIDEO_VISIBLE_ROWS - height + y + 1);  #endif /* CONFIG_SPLASH_SCREEN_ALIGN */ +	/* +	 * Just ignore elements which are completely beyond screen +	 * dimensions. +	 */ +	if ((x >= VIDEO_VISIBLE_COLS) || (y >= VIDEO_VISIBLE_ROWS)) +		return 0; +  	if ((x + width) > VIDEO_VISIBLE_COLS)  		width = VIDEO_VISIBLE_COLS - x;  	if ((y + height) > VIDEO_VISIBLE_ROWS) |