summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7bf9869..ca5a231 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ target_link_libraries(game
29 stb 29 stb
30 swgfx) 30 swgfx)
31 31
32target_compile_options(game PRIVATE -Wall -Wextra) 32target_compile_options(game PRIVATE -Wall -Wextra -Wno-missing-braces)
33 33
34# Tools. 34# Tools.
35 35
diff --git a/src/main.c b/src/main.c
index e38eeaa..17995bc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -274,7 +274,7 @@ static void RenderTriangle2d(swgfx* gfx) {
274 274
275static void Checkerboard(swgfx* gfx, int width, int height) { 275static void Checkerboard(swgfx* gfx, int width, int height) {
276 assert(gfx); 276 assert(gfx);
277 const sgPixel colour = (sgPixel){255, 0, 255, 255}; 277 const sgColour4 colour = (sgColour4){1, 0, 1, 1};
278 for (int y = 0; y < height; ++y) { 278 for (int y = 0; y < height; ++y) {
279 for (int x = 0; x < width; ++x) { 279 for (int x = 0; x < width; ++x) {
280 if (((x ^ y) & 1) == 1) { 280 if (((x ^ y) & 1) == 1) {