forked from mirror/qmk_firmware
[CI] Format code according to conventions (#25827)
Format code according to conventions
This commit is contained in:
@@ -17,7 +17,7 @@ static deferred_executor_t lvgl_executors[2] = {0}; // For lv_tick_inc and lv_ta
|
||||
static lvgl_state_t lvgl_states[2] = {0}; // For lv_tick_inc and lv_task_handler
|
||||
|
||||
painter_device_t selected_display = NULL;
|
||||
void * color_buffer = NULL;
|
||||
void *color_buffer = NULL;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Quantum Painter LVGL Integration Internal: qp_lvgl_flush
|
||||
@@ -33,7 +33,7 @@ void qp_lvgl_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color
|
||||
}
|
||||
|
||||
static uint32_t tick_task_callback(uint32_t trigger_time, void *cb_arg) {
|
||||
lvgl_state_t * state = (lvgl_state_t *)cb_arg;
|
||||
lvgl_state_t *state = (lvgl_state_t *)cb_arg;
|
||||
static uint32_t last_tick = 0;
|
||||
switch (state->fnc_id) {
|
||||
case 0: {
|
||||
@@ -97,7 +97,7 @@ bool qp_lvgl_attach(painter_device_t device) {
|
||||
static lv_disp_draw_buf_t draw_buf;
|
||||
// Allocate a buffer for 1/10 screen size
|
||||
const size_t count_required = driver->panel_width * driver->panel_height / 10;
|
||||
void * new_color_buffer = realloc(color_buffer, sizeof(lv_color_t) * count_required);
|
||||
void *new_color_buffer = realloc(color_buffer, sizeof(lv_color_t) * count_required);
|
||||
if (!new_color_buffer) {
|
||||
qp_dprintf("qp_lvgl_attach: fail (could not set up memory buffer)\n");
|
||||
qp_lvgl_detach();
|
||||
|
||||
Reference in New Issue
Block a user