OverkillManatee / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

[Chapter 5] drawRect function in AndroidGraphics.java improperly calculates rect #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The drawRect function in AndroidGraphics.java adds width to y rather than 
height, it reads
'canvas.drawRect(x, y, x + width - 1, y + width - 1, paint);'
rather than 
'canvas.drawRect(x, y, x + width - 1, y + height - 1, paint);'

Original issue reported on code.google.com by michaelw...@gmail.com on 10 May 2011 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by badlogicgames on 24 Aug 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision two!

Original comment by badlogicgames on 6 Sep 2011 at 1:30