summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/cfb_console.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index df5d91f..9ac63d0 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -1917,12 +1917,14 @@ static void *video_logo(void)
if (len > space) {
int xx = VIDEO_INFO_X, yy = VIDEO_INFO_Y;
+ uchar *p = (uchar *) info;
while (len) {
if (len > space) {
- video_drawchars(xx, yy,
- (uchar *) info + (y_off * space), space);
+ video_drawchars(xx, yy, p, space);
len -= space;
+ p = (uchar *) p + space;
+
if (!y_off) {
xx += VIDEO_FONT_WIDTH;
space--;
@@ -1931,8 +1933,7 @@ static void *video_logo(void)
y_off++;
} else {
- video_drawchars(xx, yy,
- (uchar *) info + (y_off * space), len);
+ video_drawchars(xx, yy, p, len);
len = 0;
}
}