summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-10 12:59:12 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-10 13:47:49 -0800
commitf59f58169bdbcd72184053c0db49da5ddb4f53e3 (patch)
tree0ba14ee80cd9320ea6283258d2428b5ab024f9aa /src
parent31a8f20fab6ba491503f685077c1a6b62de2db34 (diff)
ansr-text: add some debug prints for SAUCE metadata
PabloDraw seems to randomly omit the SAUCE metadata when I save files, so adding some instrumentation for better visibility into these things @ runtime on debug builds.
Diffstat (limited to 'src')
-rw-r--r--src/ansr-tex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ansr-tex.c b/src/ansr-tex.c
index 46d6d00..0b392d4 100644
--- a/src/ansr-tex.c
+++ b/src/ansr-tex.c
@@ -96,7 +96,10 @@ static ansr_t * ansr_from_file(const char *path)
if (!f)
return NULL;
- (void) ansr_get_sauce_dimensions(f, &conf.screen_width, NULL);
+ debug_if(ansr_get_sauce_dimensions(f, &conf.screen_width, NULL) < 0,
+ "No SAUCE metadata for \"%s\"", path);
+
+ debugf("\"%s\" %u wide", path, conf.screen_width);
a = ansr_new(&conf, NULL, 0);
if (!a) {
© All Rights Reserved