MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getRetinaScaleFactor

Method getRetinaScaleFactor

src/main/java/field/graphics/Window.java:988–995  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

986 glfwGetWindowPos(window, glfwGetWindowWidth_x, glfwGetWindowWidth_y);
987 return glfwGetWindowWidth_x.get(0);
988 }
989
990 private int glfwGetWindowY(long window) {
991 glfwGetWindowPos(window, glfwGetWindowWidth_x, glfwGetWindowWidth_y);
992 return glfwGetWindowWidth_y.get(0);
993 }
994
995 public Saver getScreenshotter() {
996 if (screenshotter != null) {
997 if (getFrameBufferWidth() != screenshotter.width || getFrameBufferHeight() != screenshotter.height) {
998 screenshotter.stop();

Callers 5

updateSceneMethod · 0.95
drawNowMethod · 0.80
updateSceneMethod · 0.80
updateSceneMethod · 0.80
loadedMethod · 0.80

Calls 2

glfwGetWindowWidthMethod · 0.95

Tested by

no test coverage detected