From 1a36cccebca0a7ce3f4d34a5e0691277edc9fe1d Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sat, 8 Aug 2026 19:12:08 +0200 Subject: [PATCH] Done working on asset corruption. It was an error of bit masking rgb888 colors to rgb565 when writing the asset file. --- SDL3_Core | 2 +- TODO.md | 4 ++-- assets/asset_builder/src/asset_file.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SDL3_Core b/SDL3_Core index de1f663..d0e2dc9 160000 --- a/SDL3_Core +++ b/SDL3_Core @@ -1 +1 @@ -Subproject commit de1f66374bf88d0dce6b3ea381667e10701c5d02 +Subproject commit d0e2dc99d2305ecea709632c75027fd33d863088 diff --git a/TODO.md b/TODO.md index f31ff3c..a260005 100644 --- a/TODO.md +++ b/TODO.md @@ -24,12 +24,12 @@ ###### Bugs -- [ ] Work on asset corruption. - ### In progress ### Done +- [x] Work on asset corruption. + - [x] Make functionnal hitboxes between entities - [x] Change the way default values are defined across components and systems diff --git a/assets/asset_builder/src/asset_file.c b/assets/asset_builder/src/asset_file.c index bdd2439..65cddf2 100644 --- a/assets/asset_builder/src/asset_file.c +++ b/assets/asset_builder/src/asset_file.c @@ -233,7 +233,7 @@ int parse_png_for_content_and_write(const char *input_file_name, FILE *output_fi b = 0x1F; } - uint16_t pixel = ((r) << 11) | ((g) << 6) | b; + uint16_t pixel = ((r) << 11) | ((g) << 5) | b; // printf("\033[48;2;%d;%d;%dm ", r << 3, g << 2, b << 3);