From fb0fdea4d4d0d7a27badaaa06643ba15749ba746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 21 Jul 2022 13:44:26 +0200 Subject: [PATCH] include/nuttx/lcd: change meaning of buffer argument for putarea The putarea documentation originally suggested that provided buffer contains just the rectangle to be updated. The commit 664d45dcbace03a879017aa99566592be31f4308 changed the expected behavior for lcd_framebuffer but failed to propagate this change to the driver's documentation. Now the expected behavior is that the whole frame is passed in buffer and it is driver's responsibility to pick the correct pixels according to the provided rectangle coordinates. This change requires update of the LCD drivers if they implement this function. --- include/nuttx/lcd/lcd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nuttx/lcd/lcd.h b/include/nuttx/lcd/lcd.h index 50ce4acf47..7879dc3f1e 100644 --- a/include/nuttx/lcd/lcd.h +++ b/include/nuttx/lcd/lcd.h @@ -79,7 +79,9 @@ struct lcd_planeinfo_s * col_start - Starting column to write to (range: 0 <= col <= xres) * col_end - Ending column to write to * (range: col_start <= col_end < xres) - * buffer - The buffer containing the area to be written to the LCD + * buffer - The buffer containing the complete frame to be written to + * the display (the correct rows and columns have to be + * selected from it) * * NOTE: this operation may not be supported by the device, in which case * the callback pointer will be NULL. In that case, putrun() should be