We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd33706 commit 6dc6785Copy full SHA for 6dc6785
1 file changed
overlays/uzip/hello/files/usr/local/bin/start-hello
@@ -190,7 +190,7 @@ vertical_pixels=$(cat /var/log/Xorg.0.log | grep "using initial mode" | cut -d x
190
dpi=$(expr "${vertical_pixels}" / "${vertical_inches}")
191
# echo "${dpi}"
192
# 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
+if [ "${dpi}" -gt 160 ] && [ ! -z "${vertical_cm}" ] && [ ! -z "${vertical_pixels}" ] ; then
194
echo "Assuming HiDPI"
195
HIDPI="YES"
196
else
0 commit comments