forked from Miroirs/x49gp
ignore s3c2410.h in make pretty-code
This commit is contained in:
parent
5246fcb0fd
commit
567771cbcc
4 changed files with 10 additions and 12 deletions
|
@ -1,4 +1,3 @@
|
||||||
---
|
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
ColumnLimit: 140
|
ColumnLimit: 140
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
|
@ -56,4 +55,3 @@ BraceWrapping:
|
||||||
SplitEmptyFunction: true
|
SplitEmptyFunction: true
|
||||||
SplitEmptyRecord: true
|
SplitEmptyRecord: true
|
||||||
SplitEmptyNamespace: true
|
SplitEmptyNamespace: true
|
||||||
...
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -194,7 +194,7 @@ mrproper: distclean
|
||||||
|
|
||||||
# auto-format code
|
# auto-format code
|
||||||
pretty-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
|
# Populate dist/firmware/ from hpcalc.org
|
||||||
pull-firmware:
|
pull-firmware:
|
||||||
|
|
|
@ -1765,8 +1765,8 @@ static int draw_faceplate( GtkWidget* ui_background, GdkEventConfigure* event, g
|
||||||
tiny_font_measure_text( key->right, &wr, &hr, &a, &dr );
|
tiny_font_measure_text( key->right, &wr, &hr, &a, &dr );
|
||||||
if ( !key->left ) {
|
if ( !key->left ) {
|
||||||
xr = key->x + ( key->width - wr ) / 2;
|
xr = key->x + ( key->width - wr ) / 2;
|
||||||
tiny_font_draw_text( bg_pixmap, &ui->colors[ right_color ], ui->kb_x_offset + xr,
|
tiny_font_draw_text( bg_pixmap, &ui->colors[ right_color ], ui->kb_x_offset + xr, ui->kb_y_offset + key->y - hr + dr + 1,
|
||||||
ui->kb_y_offset + key->y - hr + dr + 1, key->right );
|
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 );
|
tiny_font_measure_text( key->below, &wl, &hl, &a, &dl );
|
||||||
xl = key->x + ( key->width - wl ) / 2;
|
xl = key->x + ( key->width - wl ) / 2;
|
||||||
|
|
||||||
tiny_font_draw_text( bg_pixmap, &ui->colors[ below_color ], ui->kb_x_offset + xl,
|
tiny_font_draw_text( bg_pixmap, &ui->colors[ below_color ], ui->kb_x_offset + xl, ui->kb_y_offset + key->y + key->height + 2,
|
||||||
ui->kb_y_offset + key->y + key->height + 2, key->below );
|
key->below );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_LAYOUT /* Debug Button Layout */
|
#if DEBUG_LAYOUT /* Debug Button Layout */
|
||||||
|
|
|
@ -117,7 +117,7 @@ struct __x49gp_ui_s__ {
|
||||||
gint lcd_annunciators_height;
|
gint lcd_annunciators_height;
|
||||||
};
|
};
|
||||||
|
|
||||||
void gui_update_lcd(x49gp_t *x49gp);
|
void gui_update_lcd( x49gp_t* x49gp );
|
||||||
|
|
||||||
int gui_init( x49gp_t* x49gp );
|
int gui_init( x49gp_t* x49gp );
|
||||||
void gui_show_error( x49gp_t* x49gp, const char* text );
|
void gui_show_error( x49gp_t* x49gp, const char* text );
|
||||||
|
|
Loading…
Reference in a new issue