aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-12-06 23:49:03 +0100
committerBoris Faure <billiob@gmail.com>2016-12-06 23:49:03 +0100
commit45539d433c5f723c11dd51f4d0d740fe24665dc3 (patch)
tree3a9dc558c620cff0407296b7dbbf890d24bbe1c2
parentFix bogus hack and restore cursor position to its right place. On OpenBSD and... (diff)
downloadterminology-45539d433c5f723c11dd51f4d0d740fe24665dc3.tar.gz
termio: small cleanup
-rw-r--r--src/bin/termio.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index e17f263..17f0b75 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5098,16 +5098,8 @@ _smart_size(Evas_Object *obj, int w, int h, Eina_Bool force)
Termio *sd = evas_object_smart_data_get(obj);
EINA_SAFETY_ON_NULL_RETURN(sd);
- if (w <= 1)
- {
- h = 24;
- w = 80;
- }
- else if (h <= 1)
- {
- h = 24;
- w = 80;
- }
+ if (w <= 1) w = 80;
+ if (h <= 1) h = 24;
if (!force)
{