mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
Fix #619
This commit is contained in:
@@ -591,7 +591,7 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
|
||||
if (annoationPoint == null) {
|
||||
insertBefore(possibleModifiers.getStart(), "public ");
|
||||
} else {
|
||||
insertAfter(annoationPoint.getStop(), "public ");
|
||||
insertAfter(annoationPoint.getStop(), " public ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,16 +26,16 @@ class Button {
|
||||
this.radius = radius;
|
||||
}
|
||||
|
||||
boolean over() {
|
||||
public boolean over() {
|
||||
return dist(mouseX, mouseY, this.x, this.y) < this.radius;
|
||||
}
|
||||
|
||||
void draw() {
|
||||
public void draw() {
|
||||
ellipse(this.x, this.y, this.radius * 2, this.radius * 2);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
void old() {
|
||||
public void old() {
|
||||
ellipse(this.x, this.y, this.radius, this.radius);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class Button {
|
||||
class ButtonOther extends Button {
|
||||
|
||||
@Override
|
||||
boolean over() {
|
||||
public boolean over() {
|
||||
return dist(mouseX, mouseY, this.x, this.y) < this.radius / 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user