This commit is contained in:
Licht 2014-11-18 13:08:37 +01:00
commit d2bdb93e91
1 changed files with 2 additions and 1 deletions

View File

@ -156,9 +156,10 @@ public class GameFrame extends JFrame {
/**
* Apply rendering hints to the given Graphics2D.
* KEY_ANTIALIASING is very expensive and doesn't do much more over KEY_TEXT_ANTIALIASING
*/
private void applyRenderingHints(Graphics2D bufferedGraphics) {
bufferedGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
//bufferedGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
bufferedGraphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
}