diff --git a/bootloader/bootloader-display.c b/bootloader/bootloader-display.c index 45010943921ca709b4d71bc7ea83dd190badb2b7..290e9199a3ec16d0a738c0253589856949cb0c65 100644 --- a/bootloader/bootloader-display.c +++ b/bootloader/bootloader-display.c @@ -8,8 +8,16 @@ static void bootloader_display_splash(void) { - gfx_copy_region(&display_screen, 0, 0, 160, 80, GFX_RLE_MONO, - sizeof(splash), (const void *)(splash)); + gfx_copy_region( + &display_screen, + 0, + 0, + 160, + 80, + GFX_RLE_MONO, + sizeof(splash), + (const void *)(splash) + ); gfx_update(&display_screen); } diff --git a/epicardium/main.c b/epicardium/main.c index 249ff1094d51adb5e25deb0b0b166159c77453e5..34fa56ca4d3ebb6fc4f79626bc1317026a6943b5 100644 --- a/epicardium/main.c +++ b/epicardium/main.c @@ -54,8 +54,14 @@ int main(void) card10_diag(); gfx_copy_region( - &display_screen, 0, 0, 160, 80, GFX_RAW, sizeof(Heart), - (const void *)(Heart) + &display_screen, + 0, + 0, + 160, + 80, + GFX_RAW, + sizeof(Heart), + (const void *)(Heart) ); gfx_update(&display_screen); diff --git a/hw-tests/dual-core/main.c b/hw-tests/dual-core/main.c index b8450343010f08bdda7c1461edee6561d452baf9..30026b8051f1e64f775dbcee8df46fd7b1d8615b 100644 --- a/hw-tests/dual-core/main.c +++ b/hw-tests/dual-core/main.c @@ -3,19 +3,19 @@ ******************************************************************************/ /***** Includes *****/ -#include "pmic.h" -#include "leds.h" #include "card10.h" +#include "leds.h" +#include "pmic.h" -#include "gfx.h" #include "display.h" +#include "gfx.h" #include "tmr_utils.h" -#include <stdio.h> +#include <Heart.h> #include <stdint.h> +#include <stdio.h> #include <string.h> -#include <Heart.h> int main(void) { @@ -23,8 +23,14 @@ int main(void) card10_diag(); gfx_copy_region( - &display_screen, 0, 0, 160, 80, GFX_RAW, sizeof(Heart), - (const void *)(Heart) + &display_screen, + 0, + 0, + 160, + 80, + GFX_RAW, + sizeof(Heart), + (const void *)(Heart) ); gfx_update(&display_screen); diff --git a/hw-tests/hello-world/main.c b/hw-tests/hello-world/main.c index 79007e14594cd28ade835928faa90163e3a14d52..5f2a82aad5b14a52cfa94ee3e3f6acf891a3dfa3 100644 --- a/hw-tests/hello-world/main.c +++ b/hw-tests/hello-world/main.c @@ -31,8 +31,14 @@ int main(void) card10_diag(); gfx_copy_region( - &display_screen, 0, 0, 160, 80, GFX_RAW, sizeof(Heart), - (const void *)(Heart) + &display_screen, + 0, + 0, + 160, + 80, + GFX_RAW, + sizeof(Heart), + (const void *)(Heart) ); gfx_update(&display_screen); diff --git a/lib/gfx/gfx.c b/lib/gfx/gfx.c index 704fb9afa9da827609851877d52b68de944c1b89..a77913c11d6de2330bd2914ccc92810b0284aacc 100644 --- a/lib/gfx/gfx.c +++ b/lib/gfx/gfx.c @@ -303,9 +303,9 @@ static void gfx_copy_region_mono( const void *p ) { const char *bp = p; - int bit = 0; - Color white = gfx_color(reg, WHITE); - Color black = gfx_color(reg, BLACK); + int bit = 0; + Color white = gfx_color(reg, WHITE); + Color black = gfx_color(reg, BLACK); for (int y_ = 0; y_ < h; y_++) { for (int x_ = 0; x_ < w; x_++) { @@ -341,9 +341,9 @@ static void gfx_copy_region_rle_mono( const void *p ) { const char *data = p; - int idx = 0; - Color white = gfx_color(reg, WHITE); - Color black = gfx_color(reg, BLACK); + int idx = 0; + Color white = gfx_color(reg, WHITE); + Color black = gfx_color(reg, BLACK); for (int i = 0; i < size; i++) { Color color = (data[i] & 0x80) ? white : black;