diff options
author | Anatolij Gustschin <agust@denx.de> | 2013-03-29 13:54:10 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-03-29 13:54:10 +0100 |
commit | d0f34f10f14853ebe3f75371533708aa0639d830 (patch) | |
tree | 5e6bf57ff36e9e52c1a3d78a083883eca73978c4 /drivers/video/cfb_console.c | |
parent | 009d75ccc11d27b9a083375a88bb93cb746b4800 (diff) | |
parent | acf3baad23586bcaf9af608b8c31949ab54e8338 (diff) | |
download | u-boot-imx-d0f34f10f14853ebe3f75371533708aa0639d830.zip u-boot-imx-d0f34f10f14853ebe3f75371533708aa0639d830.tar.gz u-boot-imx-d0f34f10f14853ebe3f75371533708aa0639d830.tar.bz2 |
Merge branch 'for-v2013.04'
Conflicts:
drivers/video/Makefile
Signed-off-by: Anatolij Gustschin <agust@denx.de>
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 26f673a..61e1058 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) |