[CI] Format code according to conventions (#25828)
Format code according to conventions
This commit is contained in:
parent
ee60542bd6
commit
43bbb5e99a
5 changed files with 8 additions and 10 deletions
|
|
@ -45,7 +45,7 @@ typedef struct surface_painter_device_t {
|
||||||
void *buffer;
|
void *buffer;
|
||||||
uint8_t *u8buffer;
|
uint8_t *u8buffer;
|
||||||
uint16_t *u16buffer;
|
uint16_t *u16buffer;
|
||||||
rgb_t * rgbbuffer;
|
rgb_t *rgbbuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Manually manage the viewport for streaming pixel data to the display
|
// Manually manage the viewport for streaming pixel data to the display
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ static inline void stream_pixdata_rgb888(surface_painter_device_t *surface, cons
|
||||||
|
|
||||||
// Stream pixel data to the current write position in GRAM
|
// Stream pixel data to the current write position in GRAM
|
||||||
static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) {
|
static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) {
|
||||||
painter_driver_t * driver = (painter_driver_t *)device;
|
painter_driver_t *driver = (painter_driver_t *)device;
|
||||||
surface_painter_device_t *surface = (surface_painter_device_t *)driver;
|
surface_painter_device_t *surface = (surface_painter_device_t *)driver;
|
||||||
stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count);
|
stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count);
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -84,7 +84,7 @@ static bool rgb888_target_pixdata_transfer(painter_driver_t *surface_driver, pai
|
||||||
// Housekeeping of the amount of pixels to transfer
|
// Housekeeping of the amount of pixels to transfer
|
||||||
uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel;
|
uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel;
|
||||||
uint32_t pixel_counter = 0;
|
uint32_t pixel_counter = 0;
|
||||||
rgb_t * target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer;
|
rgb_t *target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer;
|
||||||
|
|
||||||
// Fill the global pixdata area so that we can start transferring to the panel
|
// Fill the global pixdata area so that we can start transferring to the panel
|
||||||
for (uint16_t y = t; y <= b; ++y) {
|
for (uint16_t y = t; y <= b; ++y) {
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,7 @@ last_hit_t g_last_hit_tracker;
|
||||||
#endif // LED_MATRIX_KEYREACTIVE_ENABLED
|
#endif // LED_MATRIX_KEYREACTIVE_ENABLED
|
||||||
|
|
||||||
#ifndef LED_MATRIX_FLAG_STEPS
|
#ifndef LED_MATRIX_FLAG_STEPS
|
||||||
# define LED_MATRIX_FLAG_STEPS \
|
# define LED_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE}
|
||||||
{ LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE }
|
|
||||||
#endif
|
#endif
|
||||||
static const uint8_t led_matrix_flag_steps[] = LED_MATRIX_FLAG_STEPS;
|
static const uint8_t led_matrix_flag_steps[] = LED_MATRIX_FLAG_STEPS;
|
||||||
#define LED_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(led_matrix_flag_steps)
|
#define LED_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(led_matrix_flag_steps)
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ static inline void process_tap_dance_action_on_dance_finished(tap_dance_action_t
|
||||||
|
|
||||||
bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||||
tap_dance_action_t *action;
|
tap_dance_action_t *action;
|
||||||
tap_dance_state_t * state;
|
tap_dance_state_t *state;
|
||||||
|
|
||||||
if (!record->event.pressed) return false;
|
if (!record->event.pressed) return false;
|
||||||
|
|
||||||
|
|
@ -197,7 +197,7 @@ bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||||
bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||||
uint8_t td_index;
|
uint8_t td_index;
|
||||||
tap_dance_action_t *action;
|
tap_dance_action_t *action;
|
||||||
tap_dance_state_t * state;
|
tap_dance_state_t *state;
|
||||||
|
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
|
case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
|
||||||
|
|
@ -233,7 +233,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
void tap_dance_task(void) {
|
void tap_dance_task(void) {
|
||||||
tap_dance_action_t *action;
|
tap_dance_action_t *action;
|
||||||
tap_dance_state_t * state;
|
tap_dance_state_t *state;
|
||||||
|
|
||||||
if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return;
|
if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,7 @@ last_hit_t g_last_hit_tracker;
|
||||||
#endif // RGB_MATRIX_KEYREACTIVE_ENABLED
|
#endif // RGB_MATRIX_KEYREACTIVE_ENABLED
|
||||||
|
|
||||||
#ifndef RGB_MATRIX_FLAG_STEPS
|
#ifndef RGB_MATRIX_FLAG_STEPS
|
||||||
# define RGB_MATRIX_FLAG_STEPS \
|
# define RGB_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE}
|
||||||
{ LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE }
|
|
||||||
#endif
|
#endif
|
||||||
static const uint8_t rgb_matrix_flag_steps[] = RGB_MATRIX_FLAG_STEPS;
|
static const uint8_t rgb_matrix_flag_steps[] = RGB_MATRIX_FLAG_STEPS;
|
||||||
#define RGB_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(rgb_matrix_flag_steps)
|
#define RGB_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(rgb_matrix_flag_steps)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue