summaryrefslogtreecommitdiff
path: root/src_build/domino_assets.c
diff options
context:
space:
mode:
authorSilas Gramlich <udyvp@student.kit.edu>2025-10-14 22:20:52 +0200
committerSilas Gramlich <udyvp@student.kit.edu>2025-10-14 22:20:52 +0200
commit88135bb849d3e8f78330e75125dd5bbc05150f53 (patch)
tree0e23dccf237200aefe59abbec1013cb40461ade3 /src_build/domino_assets.c
parent57542da0daca2b74494fbdc7f68e6f5207eb7e48 (diff)
parentf0ba6cf564c37e47028717b70c388874e35cd182 (diff)
added fixes from merge
Diffstat (limited to 'src_build/domino_assets.c')
-rw-r--r--src_build/domino_assets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src_build/domino_assets.c b/src_build/domino_assets.c
index 7b6b6c6..f6e088c 100644
--- a/src_build/domino_assets.c
+++ b/src_build/domino_assets.c
@@ -33,7 +33,7 @@ void print_domino(unsigned char *data, int width, int n, int posx, int posy) {
int main(int argc, char **argv) {
int x,y,n;
- if (argc != 2) return 1;
+ if (argc != 3) return 1;
unsigned char *data = stbi_load(argv[1], &x, &y, &n, 0);
// n = n < 3 ? n : 3;
@@ -47,7 +47,8 @@ int main(int argc, char **argv) {
printf("#define EYE_SIZE %d\n", EYE_SIZE);
printf("#define BYTES_PER_PIXEL %d\n", n);
- printf("struct image domino[%d][%d] = {\n",
+ printf("struct image %s[%d][%d] = {\n",
+ argv[2],
NUM_DOMINO_X,
NUM_DOMINO_Y
);