Skip to content

Commit

Permalink
fix(gui): add VM flags to fix UI ghosting (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Aug 4, 2024
1 parent 821cc66 commit f9da6e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .run/jadx-gui.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<module name="jadx.jadx-gui.main"/>
<option name="PROGRAM_PARAMETERS" value="-v"/>
<option name="VM_PARAMETERS"
value="-Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED"/>
value="-Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddforcevram=true -Dsun.java2d.ddblit=false -Dswing.useflipBufferStrategy=True"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>
Expand Down
6 changes: 6 additions & 0 deletions jadx-gui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ application {
// needed for ktlint formatter
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens=java.base/java.lang=ALL-UNNAMED",
// flags to fix UI ghosting (#2225)
"-Dsun.java2d.noddraw=true",
"-Dsun.java2d.d3d=false",
"-Dsun.java2d.ddforcevram=true",
"-Dsun.java2d.ddblit=false",
"-Dswing.useflipBufferStrategy=True",
)
applicationDistribution.from("$rootDir") {
include("README.md")
Expand Down

0 comments on commit f9da6e0

Please sign in to comment.