From 8c85da0b525fbdc75e486d1a1c756c77086cb657 Mon Sep 17 00:00:00 2001 From: b Date: Fri, 2 Dec 2022 11:31:15 +0100 Subject: [PATCH] Fixed t-1 remap --- remap_t_1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remap_t_1.c b/remap_t_1.c index 1116fe7..3daf1c9 100644 --- a/remap_t_1.c +++ b/remap_t_1.c @@ -118,8 +118,7 @@ int subtool_remap_t_1 (int argc, char **argv, int argi, char **err) break; data.new_pal[i].red = ( v[0] << 2) | ((v[1] & 0x30) >> 4); data.new_pal[i].green = ((v[1] & 0x0f) << 4) | ((v[2] & 0x3c) >> 2); - data.new_pal[i].blue = ((v[3] & 0x03) << 6) | v[3] ; - ++data.n1; + data.new_pal[i].blue = ((v[2] & 0x03) << 6) | v[3] ; } r = perform_action_1picture ( -- 2.30.2