From 3c30311d63d88fb7f0e26b153abf2bba3ab4947e Mon Sep 17 00:00:00 2001 From: kdx Date: Sat, 4 May 2024 15:31:16 +0200 Subject: use correct image offset --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index de7e02d..9e13c11 100644 --- a/src/main.c +++ b/src/main.c @@ -62,11 +62,11 @@ static int process_imagelayer(cJSON *json) { if (process_layer(json)) return -1; JSON_GET_STRING(json, image); - JSON_GET(json, x); - JSON_GET(json, y) + JSON_GET(json, offsetx); + JSON_GET(json, offsety) - printf(".imagelayer={\"%s\",%d,%d}},", image->valuestring, x->valueint, - y->valueint); + printf(".imagelayer={\"%s\",%d,%d}},", image->valuestring, offsetx->valueint, + offsety->valueint); return 0; } -- cgit v1.2.3