diff --git a/src/bin/tycat.c b/src/bin/tycat.c index a1b79002..b620e4df 100644 --- a/src/bin/tycat.c +++ b/src/bin/tycat.c @@ -287,9 +287,21 @@ main(int argc, char **argv) scaleterm(w, h, &iw, &ih); prnt(rp, iw, ih, mode); } + else ok = EINA_FALSE; + } + else ok = EINA_FALSE; + + if (!ok) + { + double ar = emotion_object_ratio_get(o); + if (ar > 0.0) + { + scaleterm(tw * cw, (int) ((tw * cw) / ar), &iw, &ih); + prnt(rp, iw, ih, mode); + } + else + prnt(rp, tw, 3, NOIMG); } - else - prnt(rp, tw, 3, NOIMG); goto done; } }