MCPcopy Create free account
hub / github.com/benfry/processing4 / getPixelScale

Method getPixelScale

core/src/processing/opengl/PSurfaceJOGL.java:739–749  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

737
738
739 public float getPixelScale() {
740 if (graphics.pixelDensity == 1) {
741 return 1;
742 }
743
744 if (PApplet.platform == PConstants.MACOS) {
745 return getCurrentPixelScale();
746 }
747
748 return 2;
749 }
750
751
752 protected float getCurrentPixelScale() {

Callers 3

placePresentMethod · 0.95
nativeMouseEventMethod · 0.95
reshapeMethod · 0.45

Calls 1

getCurrentPixelScaleMethod · 0.95

Tested by

no test coverage detected