From 7e6cfbd13bdc80fbe11d9aa4e0e06757ee8f37fd Mon Sep 17 00:00:00 2001 From: GABBAR1947 Date: Tue, 2 Feb 2016 01:15:02 +0530 Subject: [PATCH 1/2] compatible code with P2D/P3D --- 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 5c0ce2e63..6ef3fceb0 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 68e9af5cb06638158acb270879ada497fbb898c4 Mon Sep 17 00:00:00 2001 From: GABBAR1947 Date: Mon, 8 Feb 2016 17:30:35 +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 6ef3fceb0..2ddeb2a72 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(); } ]]>