Disable scaling (No distortion on hi-dpi monitors)

This commit is contained in:
Jindra Petřík
2020-12-31 23:14:53 +01:00
parent 99fd022df7
commit c6dfd58b69
4 changed files with 7 additions and 2 deletions

View File

@@ -16,6 +16,9 @@ All notable changes to this project will be documented in this file.
### Changed
- Chinese translation updated
### Fixed
- Scaling - Distorted images/canvas on Hi-dpi monitors for Java 9 and later
## [11.3.0] - 2020-04-25
### Added
- Possibility to open SWF files using open on Mac

View File

@@ -405,6 +405,7 @@
<maxHeapPercent>${max.heap.size.percent}</maxHeapPercent>
<opt>-Djava.net.preferIPv4Stack=true</opt>
<opt>-Djna.nosys=true</opt>
<opt>-Dsun.java2d.uiScale=1.0</opt>
</jre>
<splash>
<file>graphics/splash2.bmp</file>
@@ -667,6 +668,7 @@
<java jar="${dist.dir}/${jar.filename}.jar" fork="true">
<jvmarg value="-Xmx${max.heap.size.run}m" />
<jvmarg value="-Djava.net.preferIPv4Stack=true" />
<jvmarg value="-Dsun.java2d.uiScale=1.0" />
<arg line="${run.params}" />
</java>
</target>

View File

@@ -1,2 +1,2 @@
@echo off
java -Xmx1024m -Djna.nosys=true -jar "%~dp0\ffdec.jar" %*
java -Xmx1024m -Djna.nosys=true -Dsun.java2d.uiScale=1.0 -jar "%~dp0\ffdec.jar" %*

View File

@@ -67,7 +67,7 @@ fi
popd > /dev/null
args=(-Djava.net.preferIPv4Stack=true -Xmx$MEMORY -jar $JAR_FILE "$@")
args=(-Djava.net.preferIPv4Stack=true -Dsun.java2d.uiScale=1.0 -Xmx$MEMORY -jar $JAR_FILE "$@")
if [ "`uname`" = "Darwin" ]; then
args=(-Xdock:name=FFDec -Xdock:icon=icon.png "${args[@]}")