Commit 7bcf714c authored by Roman Sedaikin's avatar Roman Sedaikin

Moved noerasebackground property to Library.load()

parent 9b66885d
...@@ -30,5 +30,8 @@ object Library { ...@@ -30,5 +30,8 @@ object Library {
} }
System.load(libFile.absolutePath) System.load(libFile.absolutePath)
loaded = true loaded = true
// we have to set this property to avoid render flickering.
System.setProperty("sun.awt.noerasebackground", "true")
} }
} }
\ No newline at end of file
...@@ -92,8 +92,6 @@ open class SkiaWindow : JFrame() { ...@@ -92,8 +92,6 @@ open class SkiaWindow : JFrame() {
companion object { companion object {
init { init {
Library.load("/", "skiko") Library.load("/", "skiko")
// we have to set this property to avoid render flickering.
System.setProperty("sun.awt.noerasebackground", "true")
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment