Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Draw
- public void Draw(Canvas canvas) {
- if(getBitmap().isRecycled())
- return;
- paint.setColor(Color.WHITE);
- if (renderable == false) {
- // return;
- if (this.type == CELL)
- renderCell();
- else
- renderClue();
- renderable = true;
- }
- if(getBitmap().isRecycled()) // checking again here, just incase it went bad.. and sure enough, it did!
- canvas.drawBitmap(getBitmap(), x, y, paint);
- canvas.drawBitmap(getBitmap(), x, y, paint);
- }
Add Comment
Please, Sign In to add comment