Skip to content

Commit 6dc6785

Browse files
authored
Increase HiDPI threshold to 160dpi
#236 (comment)
1 parent fd33706 commit 6dc6785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

overlays/uzip/hello/files/usr/local/bin/start-hello

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ vertical_pixels=$(cat /var/log/Xorg.0.log | grep "using initial mode" | cut -d x
190190
dpi=$(expr "${vertical_pixels}" / "${vertical_inches}")
191191
# echo "${dpi}"
192192
# On some systems, vertical_cm and/or vertical_pixels may not be there; in this case do not assume HiDPI
193-
if [ "${dpi}" -gt 150 ] && [ ! -z "${vertical_cm}" ] && [ ! -z "${vertical_pixels}" ] ; then
193+
if [ "${dpi}" -gt 160 ] && [ ! -z "${vertical_cm}" ] && [ ! -z "${vertical_pixels}" ] ; then
194194
echo "Assuming HiDPI"
195195
HIDPI="YES"
196196
else

0 commit comments

Comments
 (0)