X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fconvert.c;h=c79477f80394810b5ead5abe7644500379693945;hb=0cc60c89bb2ee51d5313ec54e63157b11f399633;hp=433b043a3dadd5a043f7f9087733c21262e12160;hpb=df798e7f57fac305e26cf1cf6265160ac5219d72;p=ypp-sc-tools.db-live.git diff --git a/pctb/convert.c b/pctb/convert.c index 433b043..c79477f 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -226,8 +226,14 @@ int main(int argc, char **argv) { /* Consequential changes to options */ if (o_mode & mf_analyse) { - if (!o_outmode_kind) - o_outmode_kind= (o_flags & ff_printisland) ? omk_none : omk_str; + if (!o_outmode_kind) { + if (o_flags & ff_printisland) { + o_outmode_kind= omk_none; + o_flags |= ff_singlepage; + } else { + o_outmode_kind= omk_str; + } + } if (o_outmode_kind==omk_upload) { o_flags |= ffs_upload; @@ -264,12 +270,12 @@ int main(int argc, char **argv) { if (!ocean) ocean= o_ocean; if (!pirate) pirate= o_pirate; - if (o_flags & ff_needisland) { + if (o_flags & ff_needisland) if (!ocean) badusage("need --ocean option when replaying images" " (consider supplying --pirate too)"); + if (ocean) sysassert(! setenv("YPPSC_OCEAN",ocean,1) ); - } if (pirate && (o_flags & ff_dict_pirate)) sysassert(! setenv("YPPSC_PIRATE",pirate,1) ); @@ -277,6 +283,7 @@ int main(int argc, char **argv) { open_screenshot_file("w"); if (o_flags & ff_singlepage) take_one_screenshot(); else take_screenshots(); + progress_log("OK for you to move the mouse now."); } if (o_mode & mf_readscreenshot) { open_screenshot_file("r");