mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
divide width and height by 2f to properly take into account resolutions
that are not divisible by 2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user