summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-02 12:27:52 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-02 12:27:52 +0000
commitb627abfbecaa7e18e2d6b6bb1f3b2ec2aae255ae (patch)
tree03077a14dcd1bec426bd26ee1bbbef11c573d439
parent9151ec61ef3a4af5f0643b95edce27e85ac1a7ec (diff)
downloadlibnsgif-b627abfbecaa7e18e2d6b6bb1f3b2ec2aae255ae.tar.gz
libnsgif-b627abfbecaa7e18e2d6b6bb1f3b2ec2aae255ae.tar.bz2
Test: Add background to gif info dump.
-rw-r--r--test/nsgif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nsgif.c b/test/nsgif.c
index b1b2424..796d34a 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -140,6 +140,10 @@ static void print_gif_info(const nsgif_info_t *info)
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, " frames:\n");
}