Skip to content

Commit 9f07d5f

Browse files
committed
add clarification for bg color issue
1 parent e4c76eb commit 9f07d5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/processing/core/PApplet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@ public PSurface getSurface() {
814814
OutputStream outputStream;
815815

816816
// Background default needs to be different from the default value in
817-
// PGraphics.backgroundColor, otherwise size(100, 100) bg spills over.
817+
// PGraphics.backgroundColor, otherwise sketches that have size(100, 100)
818+
// appear to be larger than they are, because the bg color matches.
818819
// https://github.com/processing/processing/issues/2297
819820
int windowColor = 0xffDDDDDD;
820821

0 commit comments

Comments
 (0)