From bab86dea9b566bb577d535c2c1e2a9112719747b Mon Sep 17 00:00:00 2001 From: drashna Date: Wed, 29 Nov 2023 02:25:01 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20qmk/qmk?= =?UTF-8?q?=5Ffirmware@5c20a845402158086e66bd60ce009c57231b1062=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quantum_painter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum_painter.md b/quantum_painter.md index e8fa1bdeceb..181abf8bb37 100644 --- a/quantum_painter.md +++ b/quantum_painter.md @@ -488,10 +488,10 @@ The maximum number of surfaces can be configured by changing the following in yo To transfer the contents of the surface to another display of the same pixel format, the following API can be invoked: ```c -bool qp_surface_draw(painter_device_t surface, painter_device_t display, uint16_t x, uint16_t y); +bool qp_surface_draw(painter_device_t surface, painter_device_t display, uint16_t x, uint16_t y, bool entire_surface); ``` -The `surface` is the surface to copy out from. The `display` is the target display to draw into. `x` and `y` are the target location to draw the surface pixel data. Under normal circumstances, the location should be consistent, as the dirty region is calculated with respect to the `x` and `y` coordinates -- changing those will result in partial, overlapping draws. +The `surface` is the surface to copy out from. The `display` is the target display to draw into. `x` and `y` are the target location to draw the surface pixel data. Under normal circumstances, the location should be consistent, as the dirty region is calculated with respect to the `x` and `y` coordinates -- changing those will result in partial, overlapping draws. `entire_surface` whether the entire surface should be drawn, instead of just the dirty region. !> The surface and display panel must have the same native pixel format.