From 5731e663c23fbb4306cc7d92e3da80758e15d9c7 Mon Sep 17 00:00:00 2001 From: GABBAR1947 Date: Tue, 2 Feb 2016 01:28:39 +0530 Subject: [PATCH 1/2] compatible code with P2D/P3D- issue #355 --- content/api_en/clear.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/api_en/clear.xml b/content/api_en/clear.xml index c0a2d9e5e..b1893033f 100644 --- a/content/api_en/clear.xml +++ b/content/api_en/clear.xml @@ -29,7 +29,9 @@ void draw() { // Click to clear the PGraphics object void mousePressed() { - pg.clear(); + pg.beginDraw(); //not required with JAVA2D + pg.clear(); + pg.endDraw(); //not required with JAVA2D } ]]> From 374cbcd1b8358870863a3b2c1c9b231536c4cf20 Mon Sep 17 00:00:00 2001 From: GABBAR1947 Date: Wed, 3 Feb 2016 12:38:24 +0530 Subject: [PATCH 2/2] compatible code with P2D/P3D- issue #355 (revised) --- content/api_en/clear.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/api_en/clear.xml b/content/api_en/clear.xml index b1893033f..d71f240d8 100644 --- a/content/api_en/clear.xml +++ b/content/api_en/clear.xml @@ -29,9 +29,9 @@ void draw() { // Click to clear the PGraphics object void mousePressed() { - pg.beginDraw(); //not required with JAVA2D - pg.clear(); - pg.endDraw(); //not required with JAVA2D + pg.beginDraw(); + pg.clear(); + pg.endDraw(); } ]]>