chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cope with very small commodity lists.
[ypp-sc-tools.db-test.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index 42dd5bc88413c35020674c3d67f9c70e722fb6b6..04847107dde3f599473befe8f18c20ca0999d520 100644
(file)
--- a/
pctb/pages.c
+++ b/
pctb/pages.c
@@
-348,7
+348,7
@@
static CanonImage *convert_page(Snapshot *sn) {
ShMask shiftmasks[3];
CanonImage *im;
ShMask shiftmasks[3];
CanonImage *im;
- fprintf(screenshot
s
_file,
+ fprintf(screenshot_file,
"P6\n"
"%d %d\n"
"255\n", sn->width, sn->height);
"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;
((xrgb << shiftmasks[i].lshift)
>> shiftmasks[i].rshift) & SAMPLEMASK;
rgb |= sample;
- fputc(sample, screenshot
s
_file);
+ fputc(sample, screenshot_file);
}
});
}
});
- sysassert(!ferror(screenshot
s
_file));
- sysassert(!fflush(screenshot
s
_file));
+ sysassert(!ferror(screenshot_file));
+ sysassert(!fflush(screenshot_file));
return im;
}
return im;
}