Commit ebf079cba8827f369a364c10254c0720a4595d51

Thomas de Grivel 2024-01-17T10:15:45

color

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/libc3/window/sdl2/demo/flies.c b/libc3/window/sdl2/demo/flies.c
index 866ebd0..14a1a0f 100644
--- a/libc3/window/sdl2/demo/flies.c
+++ b/libc3/window/sdl2/demo/flies.c
@@ -223,6 +223,7 @@ bool flies_render (s_sequence *seq)
     gl_matrix_4f_translate(&g_ortho.model_matrix, 0.0, board_item_h, 0.0);
     gl_ortho_color(&g_ortho, 0.6f, 0.7f, 0.9f, 1.0f);
     gl_ortho_rect(&g_ortho, 0, 0, board_w, board_h);
+    gl_ortho_color(&g_ortho, 1.0f, 1.0f, 1.0f, 1.0f);
     address[1] = 0;
     while (address[1] < BOARD_SIZE) {
       y = board_item_h * address[1];
@@ -241,6 +242,7 @@ bool flies_render (s_sequence *seq)
             gl_ortho_bind_texture(&g_ortho, 0);
             gl_ortho_color(&g_ortho, 0.0f, 0.0f, 1.0f, 1.0f);
             gl_ortho_rect(&g_ortho, 0, 0, board_item_w + 1.0, board_item_h + 1.0);
+            gl_ortho_color(&g_ortho, 1.0f, 1.0f, 1.0f, 1.0f);
             break;
           case BOARD_ITEM_FLY:
             matrix_2 = g_ortho.model_matrix; {