use correct 8 bit colourspace instead of including alpha

This commit is contained in:
2025-02-03 15:02:00 +01:00
parent 49b3add8c5
commit c546f78c4c
8 changed files with 55 additions and 78 deletions

View File

@@ -8,7 +8,7 @@
#include <time.h>
#include "../main.h"
#include "../window/colour.h"
#include "../window/colour8.h"
#include "./tetromino/shapes.h"
#include "tetromino/placing.h"
@@ -39,7 +39,7 @@ void game_init(GameData* const game_data) {
// allocate size for each row
for (int8_t i = 0; i < ROWS; i++) {
game_data->rows[i] = calloc(COLUMNS, sizeof(Colour));
game_data->rows[i] = calloc(COLUMNS, sizeof(Colour8));
// game_data->rows[i][0] = (Colour){(uint8_t)((((i + 1) ^ ((i + 1) >> 3)) * 0x27) & 0xFF)}; // for debugging
}