diff options
| author | QMK Bot <hello@qmk.fm> | 2025-12-01 07:46:22 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-30 20:46:22 +0000 |
| commit | 43bbb5e99a2c552c127d30dfdf317fb70b143b40 (patch) | |
| tree | 4269efb53cae22f89e1653c2253255333d5b5813 /drivers/painter | |
| parent | ee60542bd6aa8d96714516f7f42b02fbd8105fcb (diff) | |
[CI] Format code according to conventions (#25828)
Format code according to conventions
Diffstat (limited to 'drivers/painter')
| -rw-r--r-- | drivers/painter/generic/qp_surface_internal.h | 2 | ||||
| -rw-r--r-- | drivers/painter/generic/qp_surface_rgb888.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/painter/generic/qp_surface_internal.h b/drivers/painter/generic/qp_surface_internal.h index e7a36550c1..0b4d32fa34 100644 --- a/drivers/painter/generic/qp_surface_internal.h +++ b/drivers/painter/generic/qp_surface_internal.h | |||
| @@ -45,7 +45,7 @@ typedef struct surface_painter_device_t { | |||
| 45 | void *buffer; | 45 | void *buffer; |
| 46 | uint8_t *u8buffer; | 46 | uint8_t *u8buffer; |
| 47 | uint16_t *u16buffer; | 47 | uint16_t *u16buffer; |
| 48 | rgb_t * rgbbuffer; | 48 | rgb_t *rgbbuffer; |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | // Manually manage the viewport for streaming pixel data to the display | 51 | // Manually manage the viewport for streaming pixel data to the display |
diff --git a/drivers/painter/generic/qp_surface_rgb888.c b/drivers/painter/generic/qp_surface_rgb888.c index 68c824b0e4..2c04136c36 100644 --- a/drivers/painter/generic/qp_surface_rgb888.c +++ b/drivers/painter/generic/qp_surface_rgb888.c | |||
| @@ -43,7 +43,7 @@ static inline void stream_pixdata_rgb888(surface_painter_device_t *surface, cons | |||
| 43 | 43 | ||
| 44 | // Stream pixel data to the current write position in GRAM | 44 | // Stream pixel data to the current write position in GRAM |
| 45 | static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) { | 45 | static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) { |
| 46 | painter_driver_t * driver = (painter_driver_t *)device; | 46 | painter_driver_t *driver = (painter_driver_t *)device; |
| 47 | surface_painter_device_t *surface = (surface_painter_device_t *)driver; | 47 | surface_painter_device_t *surface = (surface_painter_device_t *)driver; |
| 48 | stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count); | 48 | stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count); |
| 49 | return true; | 49 | return true; |
| @@ -84,7 +84,7 @@ static bool rgb888_target_pixdata_transfer(painter_driver_t *surface_driver, pai | |||
| 84 | // Housekeeping of the amount of pixels to transfer | 84 | // Housekeeping of the amount of pixels to transfer |
| 85 | uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel; | 85 | uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel; |
| 86 | uint32_t pixel_counter = 0; | 86 | uint32_t pixel_counter = 0; |
| 87 | rgb_t * target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer; | 87 | rgb_t *target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer; |
| 88 | 88 | ||
| 89 | // Fill the global pixdata area so that we can start transferring to the panel | 89 | // Fill the global pixdata area so that we can start transferring to the panel |
| 90 | for (uint16_t y = t; y <= b; ++y) { | 90 | for (uint16_t y = t; y <= b; ++y) { |
