diff options
Diffstat (limited to 'engines/sci/gfx/gfx_res_options.cpp')
-rw-r--r-- | engines/sci/gfx/gfx_res_options.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/sci/gfx/gfx_res_options.cpp b/engines/sci/gfx/gfx_res_options.cpp index 230d69e0a7..d61bfb57e9 100644 --- a/engines/sci/gfx/gfx_res_options.cpp +++ b/engines/sci/gfx/gfx_res_options.cpp @@ -45,7 +45,7 @@ matches_patternlist(gfx_res_pattern_t *patterns, int nr, int val) { #ifdef DEBUG static void print_pattern(gfx_res_pattern_t *pat) { - fprintf(stderr, "[%d..%d]", + error("[%d..%d]", pat->min, pat->max); } #endif @@ -56,24 +56,24 @@ resource_matches_patternlists(gfx_res_conf_t *conf, int loc; #ifdef DEBUG int i; - fprintf(stderr, "[DEBUG:gfx-res] Trying to match against %d/%d/%d choices\n", + error("[DEBUG:gfx-res] Trying to match against %d/%d/%d choices\n", conf->patterns_nr, conf->loops_nr, conf->cels_nr); for (i = 0; i < conf->patterns_nr; i++) { - fprintf(stderr, "[DEBUG:gfx-res] Pat #%d: ", i); + error("[DEBUG:gfx-res] Pat #%d: ", i); print_pattern(conf->patterns + i); - fprintf(stderr, "\n"); + error("\n"); } loc = conf->patterns_nr; for (i = 0; i < conf->loops_nr; i++) { - fprintf(stderr, "[DEBUG:gfx-res] Loop #%d: ", i); + error("[DEBUG:gfx-res] Loop #%d: ", i); print_pattern(conf->patterns + i + loc); - fprintf(stderr, "\n"); + error("\n"); } loc += conf->loops_nr; for (i = 0; i < conf->cels_nr; i++) { - fprintf(stderr, "[DEBUG:gfx-res] Cel #%d: ", i); + error("[DEBUG:gfx-res] Cel #%d: ", i); print_pattern(conf->patterns + i + loc); - fprintf(stderr, "\n"); + error("\n"); } #endif if (conf->patterns_nr && @@ -114,7 +114,7 @@ find_match(gfx_res_conf_t *conflist, if (resource_matches_patternlists(conflist, type, nr, loop, cel)) { #ifdef DEBUG - fprintf(stderr, "[DEBUG:gfx-res] Found match!\n"); + error("[DEBUG:gfx-res] Found match"); #endif return conflist; } @@ -187,7 +187,7 @@ gfx_get_res_config(gfx_options_t *options, gfx_pixmap_t *pxm) { gfx_res_conf_t *conf; #ifdef DEBUG - fprintf(stderr, "[DEBUG:gfx-res] Trying to conf %d/%d/%d/%d (ID=%d)\n", + error("[DEBUG:gfx-res] Trying to conf %d/%d/%d/%d (ID=%d)\n", restype, nr, loop, cel, pxm->ID); #endif |