chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mention --upload at top of README
[ypp-sc-tools.main.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index c5cc941b7a942c655d03b4709cbd54707d01c555..482c959c24261cf541ca0ea4e99b63ddf7e51e4e 100644
(file)
--- a/
pctb/pages.c
+++ b/
pctb/pages.c
@@
-553,6
+553,7
@@
static void prepare_ypp_client(void) {
void take_screenshots(void) {
Snapshot *current=0, *last=0;
void take_screenshots(void) {
Snapshot *current=0, *last=0;
+ RgbImage *page0_store;
prepare_ypp_client();
prepare_ypp_client();
@@
-561,6
+562,8
@@
void take_screenshots(void) {
wait_for_stability(¤t,0, send_pgup_many,
"paging up to top of commodity list...");
wait_for_stability(¤t,0, send_pgup_many,
"paging up to top of commodity list...");
+ page0_rgbimage= page0_store= alloc_rgb_image(current->w, current->h);
+
/* now to actually page down */
for (;;) {
debugf("paging page %d\n",npages);
/* now to actually page down */
for (;;) {
debugf("paging page %d\n",npages);
@@
-569,8
+572,8
@@
void take_screenshots(void) {
fatal("Paging down seems to generate too many pages - max is %d.",
MAX_PAGES);
fatal("Paging down seems to generate too many pages - max is %d.",
MAX_PAGES);
- page_images[npages]= convert_page(current,
0
);
- free_snapshot(&last); last=current; current=0;
+ page_images[npages]= convert_page(current,
page0_store
);
+ free_snapshot(&last); last=current; current=0;
page0_store=0;
debugf("PAGING page %d converted\n",npages);
debugf("PAGING page %d converted\n",npages);
@@
-592,6
+595,7
@@
void take_screenshots(void) {
debugf("PAGING all done.\n");
progress_log("collected %d screenshots.",npages);
debugf("PAGING all done.\n");
progress_log("collected %d screenshots.",npages);
+ assert(!page0_store);
}
void take_one_screenshot(void) {
}
void take_one_screenshot(void) {