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:
parent
8c80b3d908
commit
10efe43c4c
|
@ -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,
|
ret = priv->planeinfo.getrun(priv->lcd_ptr, row,
|
||||||
lcd_area->col_start, buf,
|
lcd_area->col_start, buf,
|
||||||
row_size);
|
cols);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
break;
|
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,
|
ret = priv->planeinfo.putrun(priv->lcd_ptr, row,
|
||||||
lcd_area->col_start, buf,
|
lcd_area->col_start, buf,
|
||||||
row_size);
|
cols);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue