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

@@ -908,20 +908,6 @@ public interface Client extends GameEngine
*/ */
long getOverallExperience(); long getOverallExperience();
/**
* Gets the game drawing mode.
*
* @return the game drawing mode
*/
int getGameDrawingMode();
/**
* Sets the games drawing mode.
*
* @param gameDrawingMode the new drawing mode
*/
void setGameDrawingMode(int gameDrawingMode);
/** /**
* Refreshes the chat. * Refreshes the chat.
*/ */

View File

@@ -29,7 +29,6 @@ import java.awt.BorderLayout;
import java.awt.Color; import java.awt.Color;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.swing.JPanel; import javax.swing.JPanel;
import net.runelite.api.Client;
import net.runelite.api.Constants; import net.runelite.api.Constants;
final class ClientPanel extends JPanel final class ClientPanel extends JPanel
@@ -48,13 +47,5 @@ final class ClientPanel extends JPanel
} }
add(client, BorderLayout.CENTER); 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);
}
} }
} }