tNow display the image in fullscreen - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 979f9e6250043e51a90cd52c1a83477dcdbc51c3
(DIR) parent 63c579cd4746a25b9662ccdd5ff28d11559d8b78
(HTM) Author: z3bra <willy@mailoo.org>
Date: Wed, 5 Feb 2014 14:23:44 +0100
Now display the image in fullscreen
Diffstat:
M imgt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/imgt b/imgt
t@@ -14,7 +14,7 @@ LINES=`tput lines`
read width height <<< `echo -e "5;$FILENAME" | $W3MIMGDISPLAY`
max_width=$(($FONTW * $COLUMNS))
-max_height=$(($FONTH * $(($LINES - 1)))) # substract one line for prompt
+max_height=$(($FONTH * $LINES))
if test $width -gt $max_width; then
height=$(($height * $max_width / $width))