mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #3102 from Akarshit/bugfix-rectBroken
rectMode getting called with correct argument now.
This commit is contained in:
@@ -1603,7 +1603,12 @@ public class PShape implements PConstants {
|
||||
g.imageMode(CORNER);
|
||||
g.image(image, params[0], params[1], params[2], params[3]);
|
||||
} else {
|
||||
g.rectMode(CORNER);
|
||||
if(params.length != 5){
|
||||
g.rectMode(CORNER);
|
||||
}
|
||||
else{
|
||||
g.rectMode((int) params[4]);
|
||||
}
|
||||
g.rect(params[0], params[1], params[2], params[3]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user