Wisdom8888 / beginning-android-games

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

width instead of height in drawRect in AndroidGraphics in framework.impl #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
 public void drawRect(int x, int y, int width, int height, int color) {
        paint.setColor(color);
        paint.setStyle(Style.FILL);
        canvas.drawRect(x, y, x + width - 1, y + width - 1, paint);
    }

should be y + height  
Looks like its wrong in all the gl projects.

Original issue reported on code.google.com by anilroop...@gmail.com on 2 Jul 2013 at 1:09