1
0
Fork 0
forked from Miroirs/x49gp

ignore s3c2410.h in make pretty-code

This commit is contained in:
Gwenhael Le Moine 2024-11-05 13:48:44 +01:00
parent 5246fcb0fd
commit 567771cbcc
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 10 additions and 12 deletions

View file

@ -1,4 +1,3 @@
---
Language: Cpp
ColumnLimit: 140
IndentWidth: 4
@ -56,4 +55,3 @@ BraceWrapping:
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
...

View file

@ -194,7 +194,7 @@ mrproper: distclean
# auto-format code
pretty-code:
clang-format -i ./src/x49gpng/*.c ./src/x49gpng/*.h
clang-format -i ./src/x49gpng/*.c $(shell ls ./src/x49gpng/*.h | grep -v s3c2410.h) ## s3c2410.h triggers an error
# Populate dist/firmware/ from hpcalc.org
pull-firmware:

View file

@ -1765,8 +1765,8 @@ static int draw_faceplate( GtkWidget* ui_background, GdkEventConfigure* event, g
tiny_font_measure_text( key->right, &wr, &hr, &a, &dr );
if ( !key->left ) {
xr = key->x + ( key->width - wr ) / 2;
tiny_font_draw_text( bg_pixmap, &ui->colors[ right_color ], ui->kb_x_offset + xr,
ui->kb_y_offset + key->y - hr + dr + 1, key->right );
tiny_font_draw_text( bg_pixmap, &ui->colors[ right_color ], ui->kb_x_offset + xr, ui->kb_y_offset + key->y - hr + dr + 1,
key->right );
}
}
@ -1799,8 +1799,8 @@ static int draw_faceplate( GtkWidget* ui_background, GdkEventConfigure* event, g
tiny_font_measure_text( key->below, &wl, &hl, &a, &dl );
xl = key->x + ( key->width - wl ) / 2;
tiny_font_draw_text( bg_pixmap, &ui->colors[ below_color ], ui->kb_x_offset + xl,
ui->kb_y_offset + key->y + key->height + 2, key->below );
tiny_font_draw_text( bg_pixmap, &ui->colors[ below_color ], ui->kb_x_offset + xl, ui->kb_y_offset + key->y + key->height + 2,
key->below );
}
#if DEBUG_LAYOUT /* Debug Button Layout */

View file

@ -117,7 +117,7 @@ struct __x49gp_ui_s__ {
gint lcd_annunciators_height;
};
void gui_update_lcd(x49gp_t *x49gp);
void gui_update_lcd( x49gp_t* x49gp );
int gui_init( x49gp_t* x49gp );
void gui_show_error( x49gp_t* x49gp, const char* text );