isRetina fix for headless mode

reviewed by kb
This commit is contained in:
Anton Makeev
2014-02-26 10:58:22 +01:00
parent 685e8711fb
commit 841e5c66d8
@@ -224,6 +224,8 @@ public class UIUtil {
}
public static boolean isRetina() {
if (GraphicsEnvironment.isHeadless()) return false;
//Temporary workaround for HiDPI on Windows/Linux
if ("true".equalsIgnoreCase(System.getProperty("is.hidpi"))) {
return true;