divide width and height by 2f to properly take into account resolutions

that are not divisible by 2
This commit is contained in:
codeanticode
2013-08-20 16:44:49 -04:00
parent d1be1455eb
commit 5a3d15da5d
2 changed files with 5 additions and 5 deletions

View File

@@ -156,7 +156,7 @@ public class PGraphics2D extends PGraphicsOpenGL {
@Override
protected void defaultCamera() {
super.camera(width/2, height/2);
super.camera(width/2f, height/2f);
}