Skip to content

Commit cd0de43

Browse files
authored
BuiltinApplet: Add pixelDensity (#217)
Signed-off-by: Ce Gao <[email protected]>
1 parent 44a8af2 commit cd0de43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rprocessing/applet/BuiltinApplet.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ public PGraphics createGraphics(double w, double h, String renderer, String path
9999
return super.createGraphics((int) w, (int) h, renderer, path);
100100
}
101101

102-
public double getPI() {
103-
return PI;
102+
public void pixelDensity(double density) {
103+
this.logWarningsforCast();
104+
super.pixelDensity((int) density);
104105
}
105106

106107
private void logWarningsforCast() {

0 commit comments

Comments
 (0)