mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
Move AA Disable before GLInit
This commit is contained in:
parent
0ab6ed3868
commit
1eee2a531b
1 changed files with 8 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue