From 7f66cb41728fdea5e1f71b8a8f7212e54088f81c Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Mon, 3 Aug 2026 20:45:42 +0200 Subject: [PATCH] Added more debug options. --- src/Makefile | 2 +- src/headers/display.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index ae439ce..989fefb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,7 @@ CORE_CC = gcc ifeq ($(RELEASE), 1) CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) # RELEASE else -CORE_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=1 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ +CORE_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ -Wformat=2 -Wswitch-default -Wswitch-enum -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \ diff --git a/src/headers/display.h b/src/headers/display.h index 6e526b7..1be2718 100644 --- a/src/headers/display.h +++ b/src/headers/display.h @@ -3,7 +3,10 @@ #include -#define C_BLACK 0, 0, 0, 255 +#define C_BLACK 0, 0, 0, 255 +#define C_RED 255, 0, 0, 255 +#define C_GREEN 0, 255, 0, 255 +#define C_BLUE 0, 0, 255, 255 #define C_WHITE 255, 255, 255, 255 #define DISPLAY_WIDTH 396