Move AA Disable before GLInit

This commit is contained in:
downthecrop 2024-10-20 22:21:52 -07:00
parent 0ab6ed3868
commit 1eee2a531b

View file

@ -43,6 +43,7 @@ import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import javax.swing.*
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
annotation class Exposed(val description: String = "")
@ -120,6 +121,13 @@ class plugin : Plugin() {
lastLogin = Player.usernameInput.toString()
}
override fun Init() {
// Disable Font AA
System.setProperty("sun.java2d.opengl", "false");
System.setProperty("awt.useSystemAAFontSettings", "off");
System.setProperty("swing.aatext", "false");
}
private fun UpdateDisplaySettings() {
val mode = GetWindowMode()
val currentScrollPaneWidth = if (mainContentPanel.isVisible) NAVBAR_WIDTH + MAIN_CONTENT_WIDTH else NAVBAR_WIDTH
@ -263,10 +271,6 @@ class plugin : Plugin() {
val frame: Frame? = GameShell.frame
if (frame != null) {
// Disable Font AA
System.setProperty("awt.useSystemAAFontSettings", "off")
System.setProperty("swing.aatext", "false")
loadFont()
try {