Skip to content

Commit

Permalink
Solved display density problem
Browse files Browse the repository at this point in the history
  • Loading branch information
w4nderlust committed Feb 10, 2016
1 parent f701697 commit cc8d402
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions SkolpTiles.pde
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,17 @@ public float shape_border = 10;
public int[] orientationMap = {1, 2, 5, 8, 7, 6, 3, 0, 4};

void setup() {
size(1080, 700, FX2D);
size(1080, 700, FX2D);
pixelDensity(displayDensity());
colorMode(HSB, 360, 100, 100, 1);
skolptiles_tag = loadShape("skolptiles_tag.svg");
cp5 = new ControlP5(this);
cp5.getProperties().setFormat(ControlP5.SERIALIZED);
cp5.setFont(createFont("Arial", 7));
if (displayDensity() < 2) {
cp5.setFont(createFont("Arial", 7));
} else {
cp5.setFont(createFont("Arial", 3.5));
}

Button buttonLoad = cp5.addButton("load")
.setPosition(710, 10)
Expand Down

0 comments on commit cc8d402

Please sign in to comment.