Skip to content

Commit

Permalink
Merge pull request #19 from dieforfree/master
Browse files Browse the repository at this point in the history
#14 bug fix
  • Loading branch information
Pkmmte committed Jan 15, 2015
2 parents 424ecf9 + 587181e commit 172d62b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@ public void onDraw(Canvas canvas) {
// We'll need this later
int oldCanvasSize = canvasSize;

// Compare canvas sizes
canvasSize = canvas.getWidth();
if(canvas.getHeight() < canvasSize)
canvasSize = canvas.getHeight();
canvasSize = getWidth() < getHeight() ? getWidth() : getHeight();

// Reinitialize shader, if necessary
if(oldCanvasSize != canvasSize)
Expand Down

0 comments on commit 172d62b

Please sign in to comment.