Skip to content

Launcher: Add HiDPI launch script for 2x scaling #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions bin/projections-hidpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

jarpath="`dirname $0`/projections.jar"

if [[ ! -f $jarpath ]]; then
echo "'$jarpath' is missing. Did you run 'make'?"
exit 1
fi

if test -x /usr/bin/cygpath
then
if test "`uname -o`" = "Cygwin"
then
jarpath=`/usr/bin/cygpath -w -a $jarpath`
fi
fi

IS_WAYLAND=`env | grep -i wayland`
if [ -n "$IS_WAYLAND" ]
then
export _JAVA_AWT_WM_NONREPARENTING=1
fi

#java -Xms4G -Xmx4G -ms4G -mx4G -XX:+UseParallelGC -classpath $jarpath projections.analysis.ProjMain $*
java -Dapple.awt.application.name="Projections" -Dsun.java2d.uiScale=2 -Xms2G -Xmx5G -ms2G -mx5G -classpath $jarpath projections.analysis.ProjMain ${1+"$@"}
#java -classpath $jarpath projections.analysis.ProjMain $*

#java -d64 -Xms2G -Xmx5G -ms2G -mx5G -classpath $jarpath projections.gui.OrderedIntList $*