api: remove set/get game drawing mode

This is being moved internally
This commit is contained in:
Adam
2021-12-21 23:22:19 -05:00
parent 438b4004e7
commit ae5614ce6a
2 changed files with 0 additions and 23 deletions

View File

@@ -29,7 +29,6 @@ import java.awt.BorderLayout;
import java.awt.Color;
import javax.annotation.Nullable;
import javax.swing.JPanel;
import net.runelite.api.Client;
import net.runelite.api.Constants;
final class ClientPanel extends JPanel
@@ -48,13 +47,5 @@ final class ClientPanel extends JPanel
}
add(client, BorderLayout.CENTER);
// This causes the whole game frame to be redrawn each frame instead
// of only the viewport, so we can hook to MainBufferProvider#draw
// and draw anywhere without it leaving artifacts
if (client instanceof Client)
{
((Client)client).setGameDrawingMode(2);
}
}
}