lcd: Fix npixels parameter in calls to getrun/putrun

It was being passed in number of bytes, but the correct should be the
number of pixels.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-10-10 16:01:49 -03:00 committed by Xiang Xiao
parent 8c80b3d908
commit 10efe43c4c
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ static int lcddev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
ret = priv->planeinfo.getrun(priv->lcd_ptr, row,
lcd_area->col_start, buf,
row_size);
cols);
if (ret < 0)
{
break;
@ -184,7 +184,7 @@ static int lcddev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
ret = priv->planeinfo.putrun(priv->lcd_ptr, row,
lcd_area->col_start, buf,
row_size);
cols);
if (ret < 0)
{
break;