MCPcopy Index your code
hub / github.com/processing/processing / getPixelScale

Method getPixelScale

core/src/processing/opengl/PJOGL.java:224–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222
223
224 @Override
225 protected float getPixelScale() {
226 PSurface surf = sketch.getSurface();
227 if (surf == null) {
228 return graphics.pixelDensity;
229 } else if (surf instanceof PSurfaceJOGL) {
230 return ((PSurfaceJOGL)surf).getPixelScale();
231 } else {
232 throw new RuntimeException("Renderer cannot find a JOGL surface");
233 }
234 }
235
236
237 @Override

Callers 2

viewportMethod · 0.95
scissorMethod · 0.95

Calls 1

getSurfaceMethod · 0.80

Tested by

no test coverage detected