Guest User

Untitled

a guest
Jan 12th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. // Draw
  2.     public void Draw(Canvas canvas) {
  3.         if(getBitmap().isRecycled())
  4.             return;
  5.         paint.setColor(Color.WHITE);
  6.         if (renderable == false) {
  7.             // return;
  8.             if (this.type == CELL)
  9.                 renderCell();
  10.             else
  11.                 renderClue();
  12.             renderable = true;
  13.         }
  14.         if(getBitmap().isRecycled()) // checking again here, just incase it went bad.. and sure enough, it did!
  15.             canvas.drawBitmap(getBitmap(), x, y, paint);
  16.         canvas.drawBitmap(getBitmap(), x, y, paint);
  17.     }
Add Comment
Please, Sign In to add comment