X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fvideo%2Fconsole_normal.c;h=2cfa510d5f7d7a0c2830986a21df1dc84d9eeab8;hb=cce289a928583a64db6ec8f813cc7884ae62c213;hp=89a55dd11df8c08be39472db546a75b1b3d48af3;hpb=f266178698307608ee23741e69b9626196e66481;p=oweals%2Fu-boot.git diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 89a55dd11d..2cfa510d5f 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2015 Google, Inc * (C) Copyright 2001-2015 * DENX Software Engineering -- wd@denx.de * Compulab Ltd - http://compulab.co.il/ * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -18,7 +17,7 @@ static int console_normal_set_row(struct udevice *dev, uint row, int clr) { struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); void *line; - int pixels = VIDEO_FONT_HEIGHT * vid_priv->line_length; + int pixels = VIDEO_FONT_HEIGHT * vid_priv->xsize; int i; line = vid_priv->fb + row * VIDEO_FONT_HEIGHT * vid_priv->line_length;