Canvas different on real device?

Problems with Canvas, OpenGL, etc...

Canvas different on real device?

Postby chris.tucket » Sat Jul 24, 2010 5:19 pm

Should there be any difference between a canvas on the emulator and a canvas on a real device (HTC Incredible)?

On my canvas for the emulator I have this:
Code: Select all
canvas.drawRect(x*cell_size + 1, y*cell_size + 1, x*cell_size+cell_size, y*cell_size+cell_size, pWalls);

and it works and looks fine but on my real device, I have to subtract 1 from the bottom/right params to get it not to overlap the lines around it. Why is there this difference?

Also on my real device, it doesn't show the line at (0,0) to (width,0) and I don't understand why not either.

Sort of off topic question but: Lets say I want to put my game on a different bitmap/canvas to double buffer it sort of, how would I do that?
Junior Developer
Junior Developer
Posts: 18
Joined: Sat Apr 17, 2010 6:19 pm


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 2 guests