summaryrefslogtreecommitdiff
path: root/gui/over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-18 14:46:33 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-18 16:08:12 -0300
commit5b77cf69eee04d62b5106db680e779dbb71ea6a6 (patch)
treecf97edab8c650610b870ad79187611acf8782c53 /gui/over.c
parentbf9fb110c93f0b3d93bbe5932975880815cf4ccb (diff)
downloadeeshow-5b77cf69eee04d62b5106db680e779dbb71ea6a6.tar.gz
eeshow-5b77cf69eee04d62b5106db680e779dbb71ea6a6.tar.bz2
eeshow-5b77cf69eee04d62b5106db680e779dbb71ea6a6.zip
eeshow/gui/over.h, over.c: allow also setting of min/max height
Diffstat (limited to 'gui/over.c')
-rw-r--r--gui/over.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/over.c b/gui/over.c
index 1d2c039..a741df6 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -101,6 +101,9 @@ fprintf(stderr, "%d + %d %d + %d\n",
ink_w = ink_w > style->wmin ? ink_w : style->wmin;
ink_w = !style->wmax || ink_w < style->wmax ? ink_w : style->wmax;
w = ink_w + 2 * style->pad;
+
+ ink_h = ink_h > style->hmin ? ink_h : style->hmin;
+ ink_h = !style->hmax || ink_h < style->hmax ? ink_h : style->hmax;
h = ink_h + 2 * style->pad;
if (dx < 0)