chiark / gitweb /
WIP island determination; pixmap handling in progress
[ypp-sc-tools.web-live.git] / pctb / pages.c
index 17ec836c0729d2e6c71a29322507b6c7f393413e..6003ea9e6338190e2838ee9be4862373c1d76a4a 100644 (file)
@@ -410,7 +410,7 @@ void take_screenshots(void) {
   raise_and_get_details();
   wait_for_stability(&current,0,0, "checking current YPP client screen...");
   test= convert_page(current, 0);
-  find_structure_commod(test, &max_relevant_y);
+  find_structure(test, &max_relevant_y);
   check_correct_commodities();
   free(test);
 
@@ -458,7 +458,7 @@ void take_one_screenshot(void) {
   raise_and_get_details();
   sync_after_input();
   wait_for_stability(&current,0,0, "taking screenshot...");
-  //page0_rgbimage= alloc_rgb_image(sn->width, sn->height);
+  page0_rgbimage= alloc_rgb_image(current->width, current->height);
   page_images[0]= convert_page(current, 0);
   npages= 1;
   progress_log("collected single screenshot.");