aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/painter/generic/qp_surface.h
diff options
context:
space:
mode:
authorPablo Martínez2025-10-08 04:10:38 +0200
committerGitHub2025-10-08 04:10:38 +0200
commit0550830909e854d2ac0203905c861a868e82b289 (patch)
tree67e5a1ce8e82d1be81f1ee89f175856e1c149aff /drivers/painter/generic/qp_surface.h
parent8f86f9794e13b6a2078f07d01ca7529d54dd676e (diff)
[QP] Minor cleanup and support for RGB888 surface (#25706)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'drivers/painter/generic/qp_surface.h')
-rw-r--r--drivers/painter/generic/qp_surface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/painter/generic/qp_surface.h b/drivers/painter/generic/qp_surface.h
index a291793649..f602a8770b 100644
--- a/drivers/painter/generic/qp_surface.h
+++ b/drivers/painter/generic/qp_surface.h
@@ -51,6 +51,16 @@ painter_device_t qp_make_rgb565_surface(uint16_t panel_width, uint16_t panel_hei
painter_device_t qp_make_mono1bpp_surface(uint16_t panel_width, uint16_t panel_height, void *buffer);
/**
+ * Factory method for an RGB888 surface (aka framebuffer).
+ *
+ * @param panel_width[in] the width of the display panel
+ * @param panel_height[in] the height of the display panel
+ * @param buffer[in] pointer to a preallocated uint8_t buffer of size `SURFACE_REQUIRED_BUFFER_BYTE_SIZE(panel_width, panel_height, 16)`
+ * @return the device handle used with all drawing routines in Quantum Painter
+ */
+painter_device_t qp_make_rgb888_surface(uint16_t panel_width, uint16_t panel_height, void *buffer);
+
+/**
* Helper method to draw the contents of the framebuffer to the target device.
*
* After successful completion, the dirty area is reset.