From b5155be28c7c7291fc57f7944176cfd1d5d4c550 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 2 Nov 2024 18:14:38 +0100 Subject: [PATCH] make pretty-code --- src/x49gpng/options.c | 2 +- src/x49gpng/s3c2410_lcd.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/x49gpng/options.c b/src/x49gpng/options.c index ce2d0fa..eb0b239 100644 --- a/src/x49gpng/options.c +++ b/src/x49gpng/options.c @@ -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'}, diff --git a/src/x49gpng/s3c2410_lcd.c b/src/x49gpng/s3c2410_lcd.c index 35ace12..3abcf48 100644 --- a/src/x49gpng/s3c2410_lcd.c +++ b/src/x49gpng/s3c2410_lcd.c @@ -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;