fix width comparison

This commit is contained in:
codeanticode
2015-09-21 17:34:29 -05:00
parent ef59512889
commit 3c8791186b
+1 -1
View File
@@ -745,7 +745,7 @@ public class PSurfaceJOGL implements PSurface {
}
if (sketch.frameCount == 0) {
if (sketchWidth0 < sketchWidth0 || sketchHeight < sketchHeight0) {
if (sketchWidth < sketchWidth0 || sketchHeight < sketchHeight0) {
PGraphics.showWarning("The sketch has been automatically resized to fit the screen resolution");
}
// System.out.println("display: " + window.getWidth() + " "+ window.getHeight() + " - " + sketchWidth + " " + sketchHeight);