X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2Fpages.c;h=04847107dde3f599473befe8f18c20ca0999d520;hp=42dd5bc88413c35020674c3d67f9c70e722fb6b6;hb=ae5d4e36af4f4a5567e1231958179d3a50eb4466;hpb=8b296a5f4da05a4dcf356f71e1ce4e63d8d282cf diff --git a/pctb/pages.c b/pctb/pages.c index 42dd5bc..0484710 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -348,7 +348,7 @@ static CanonImage *convert_page(Snapshot *sn) { ShMask shiftmasks[3]; CanonImage *im; - fprintf(screenshots_file, + fprintf(screenshot_file, "P6\n" "%d %d\n" "255\n", sn->width, sn->height); @@ -369,12 +369,12 @@ static CanonImage *convert_page(Snapshot *sn) { ((xrgb << shiftmasks[i].lshift) >> shiftmasks[i].rshift) & SAMPLEMASK; rgb |= sample; - fputc(sample, screenshots_file); + fputc(sample, screenshot_file); } }); - sysassert(!ferror(screenshots_file)); - sysassert(!fflush(screenshots_file)); + sysassert(!ferror(screenshot_file)); + sysassert(!fflush(screenshot_file)); return im; }