summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-24 22:03:20 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-24 22:03:20 +0000
commit245bd38ecdb75340065f0a05e292828261a241a5 (patch)
tree818343d18932787a1eda554c5b9faa8b2d556403
parente55a0a37099caec739bcddd2f1a459a322bbec0c (diff)
downloadlibnsgif-245bd38ecdb75340065f0a05e292828261a241a5.tar.gz
Test: Update gif decoder to new API.
-rw-r--r--test/nsgif.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/nsgif.c b/test/nsgif.c
index a32a0ef..e91d151 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -135,15 +135,17 @@ static void warning(const char *context, nsgif_error err)
static void print_gif_info(const nsgif_info_t *info)
{
+ const uint8_t *bg = (uint8_t *) &info->background;
+
fprintf(stdout, "gif:\n");
fprintf(stdout, " width: %"PRIu32"\n", info->width);
fprintf(stdout, " height: %"PRIu32"\n", info->height);
fprintf(stdout, " max-loops: %"PRIu32"\n", info->loop_max);
fprintf(stdout, " frame-count: %"PRIu32"\n", info->frame_count);
fprintf(stdout, " background:\n");
- fprintf(stdout, " red: 0x%"PRIx8"\n", info->background[0]);
- fprintf(stdout, " green: 0x%"PRIx8"\n", info->background[1]);
- fprintf(stdout, " blue: 0x%"PRIx8"\n", info->background[2]);
+ fprintf(stdout, " red: 0x%"PRIx8"\n", bg[0]);
+ fprintf(stdout, " green: 0x%"PRIx8"\n", bg[1]);
+ fprintf(stdout, " blue: 0x%"PRIx8"\n", bg[2]);
fprintf(stdout, " frames:\n");
}