forked from Miroirs/x49gp
make pretty-code
This commit is contained in:
parent
15ed5d18dc
commit
b5155be28c
2 changed files with 3 additions and 4 deletions
|
@ -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'},
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue