Skip to content

Commit

Permalink
Merge pull request asb#20 from Rob-Bishop/master
Browse files Browse the repository at this point in the history
Height now fixed. Width is now scalable so that more text is displayed on widescreen displays.
  • Loading branch information
asb committed May 25, 2013
2 parents 69a97b3 + e335ace commit 5ff5501
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions raspi-config
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ calc_wt_size() {
# NOTE: it's tempting to redirect stderr to /dev/null, so supress error
# output from tput. However in this case, tput detects neither stdout or
# stderr is a tty and so only gives default 80, 24 values
WT_HEIGHT=$(tput lines)
WT_HEIGHT=17
WT_WIDTH=$(tput cols)

if [ -z "$WT_HEIGHT" ] || [ "$WT_HEIGHT" -lt 15 ]; then
WT_HEIGHT=20
fi
if [ -z "$WT_WIDTH" ] || [ "$WT_WIDTH" -lt 60 ]; then
WT_WIDTH=80
fi
if [ "$WT_WIDTH" -gt 178 ]; then
WT_WIDTH=120
fi
WT_MENU_HEIGHT=$(($WT_HEIGHT-8))
}

Expand Down

0 comments on commit 5ff5501

Please sign in to comment.