From c12aff68a818d5cd53d4b42954e79bba0a2e255f Mon Sep 17 00:00:00 2001 From: gitknilch Date: Sat, 9 Mar 2013 19:36:02 +0100 Subject: [PATCH] get rid of paint in doDraw. Change-Id: Ie5619c1514ae2bfa1326fb33976cbdcbe92d59e9 Signed-off-by: gitknilch --- src/de/cwde/freeshisen/ShisenShoView.java | 31 +++++++++-------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/de/cwde/freeshisen/ShisenShoView.java b/src/de/cwde/freeshisen/ShisenShoView.java index 916dfb7..76d7fc6 100644 --- a/src/de/cwde/freeshisen/ShisenShoView.java +++ b/src/de/cwde/freeshisen/ShisenShoView.java @@ -304,8 +304,6 @@ class ShisenShoView extends SurfaceView implements SurfaceHolder.Callback { int selectcolor = Color.parseColor(COLOR_SELECTED); int hintcolor = Color.parseColor(COLOR_HINT); - Paint paint = new Paint(); - paint.setFlags(Paint.ANTI_ALIAS_FLAG); // Background & board painting switch (pstate) { @@ -322,7 +320,7 @@ class ShisenShoView extends SurfaceView implements SurfaceHolder.Callback { int bgHeight = bg.getHeight(); for (int i=0; i