1
0
Fork 0
forked from Miroirs/x49gp

make pretty-code

This commit is contained in:
Gwenhael Le Moine 2024-11-02 18:14:38 +01:00
parent 15ed5d18dc
commit b5155be28c
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 3 additions and 4 deletions

View file

@ -53,7 +53,7 @@ void config_init( char* progname, int argc, char* argv[] )
{"49gp", no_argument, NULL, 496},
{"49gp-newrpl", no_argument, NULL, 497},
{"name", required_argument, NULL, 'n'},
{"scale", required_argument, NULL, 's'},
{"scale", required_argument, NULL, 's'},
{"font", required_argument, NULL, 't'},

View file

@ -330,9 +330,8 @@ void x49gp_lcd_update( x49gp_t* x49gp )
for ( int y = 0; y < ( ( ui->lcd_height - ui->lcd_annunciators_height ) / LCD_PIXEL_SCALE ); y++ )
for ( int x = 0; x < ( ui->lcd_width / LCD_PIXEL_SCALE ); x++ )
_draw_pixel( ui->lcd_pixmap, LCD_PIXEL_SCALE * x, LCD_PIXEL_SCALE * y + ui->lcd_annunciators_height,
LCD_PIXEL_SCALE, LCD_PIXEL_SCALE,
&( ui->colors[ UI_COLOR_GRAYSCALE_0 + x49gp_get_pixel_color( lcd, x, y ) ] ) );
_draw_pixel( ui->lcd_pixmap, LCD_PIXEL_SCALE * x, LCD_PIXEL_SCALE * y + ui->lcd_annunciators_height, LCD_PIXEL_SCALE,
LCD_PIXEL_SCALE, &( ui->colors[ UI_COLOR_GRAYSCALE_0 + x49gp_get_pixel_color( lcd, x, y ) ] ) );
}
GdkRectangle rect;