Skip to content

Commit

Permalink
BuiltinApplet: Add pixelDensity (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored Aug 20, 2017
1 parent 44a8af2 commit cd0de43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rprocessing/applet/BuiltinApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ public PGraphics createGraphics(double w, double h, String renderer, String path
return super.createGraphics((int) w, (int) h, renderer, path);
}

public double getPI() {
return PI;
public void pixelDensity(double density) {
this.logWarningsforCast();
super.pixelDensity((int) density);
}

private void logWarningsforCast() {
Expand Down

0 comments on commit cd0de43

Please sign in to comment.