From 67f9997184da9e5e71fc5ac5ec1d711c240936f8 Mon Sep 17 00:00:00 2001 From: YUANSUYI Date: Thu, 18 Jan 2024 15:00:11 +0800 Subject: [PATCH] docs(disp): fix minor typo in docs/porting/display.rst (#5368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 袁苏义 --- docs/porting/display.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/porting/display.rst b/docs/porting/display.rst index 811d9af937..02c388914b 100644 --- a/docs/porting/display.rst +++ b/docs/porting/display.rst @@ -62,7 +62,7 @@ The draw buffers can be set with - ``render_mode`` - :cpp:enumerator:`LV_DISP_RENDER_MODE_PARTIAL` Use the buffer(s) to render the - screen is smaller parts. This way the buffers can be smaller then + screen in smaller parts. This way the buffers can be smaller then the display to save RAM. At least 1/10 screen size buffer(s) are recommended. In ``flush_cb`` the rendered images needs to be copied to the given area of the display. In this mode if a button is pressed @@ -70,7 +70,7 @@ The draw buffers can be set with - :cpp:enumerator:`LV_DISP_RENDER_MODE_DIRECT` The buffer(s) has to be screen sized and LVGL will render into the correct location of the buffer. This way the buffer always contain the whole image. If two - buffer are used the rendered ares are automatically copied to the + buffer are used the rendered areas are automatically copied to the other buffer after flushing. Due to this in ``flush_cb`` typically only a frame buffer address needs to be changed. If a button is pressed only the button's area will be redrawn.