From d21b911a13f194fcac2fdf5a96bc53dc0a1bc8b8 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Thu, 12 Sep 2013 18:03:10 -0400 Subject: [PATCH] fix formatting --- core/src/processing/core/PApplet.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 58f6f3b41..2eb3e3dd6 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -10445,7 +10445,8 @@ public class PApplet extends Applet Frame frame = new JFrame(displayDevice.getDefaultConfiguration()); // Default Processing gray, which will be replaced below if another // color is specified on the command line (i.e. in the prefs). - ((JFrame)frame).getContentPane().setBackground(new Color(0xCC, 0xCC, 0xCC)); + final Color defaultGray = new Color(0xCC, 0xCC, 0xCC); + ((JFrame) frame).getContentPane().setBackground(defaultGray); // Cannot call setResizable(false) until later due to OS X (issue #467) final PApplet applet; @@ -10557,7 +10558,7 @@ public class PApplet extends Applet //frame.setExtendedState(Frame.MAXIMIZED_BOTH); frame.setUndecorated(true); if (backgroundColor != null) { - ((JFrame)frame).getContentPane().setBackground(backgroundColor); + ((JFrame) frame).getContentPane().setBackground(backgroundColor); } // if (exclusive) { // displayDevice.setFullScreenWindow(frame); @@ -10714,7 +10715,7 @@ public class PApplet extends Applet // // this means no bg color unless specified // backgroundColor = SystemColor.control; // } - ((JFrame)frame).getContentPane().setBackground(backgroundColor); + ((JFrame) frame).getContentPane().setBackground(backgroundColor); } // int usableWindowH = windowH - insets.top - insets.bottom;