daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
Top