(long window, int character)
| 928 | if (window == Window.this.window) { |
| 929 | fireDrop(new Drop(files, mouseState, keyboardState)); |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | @Override |
| 934 | public void windowPos(long window, int x, int y) { |
| 935 | if (window == Window.this.window) { |
| 936 | currentBounds.x = x; |
| 937 | currentBounds.y = y; |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | @Override |
| 942 | public void windowSize(long window, int width, int height) { |
| 943 | if (window == Window.this.window) { |
| 944 | currentBounds.w = width; |
| 945 | currentBounds.h = height; |
| 946 | } |
| 947 | } |
| 948 | |
| 949 | @Override |
| 950 | public void framebufferSize(long window, int width, int height) { |
| 951 | |
| 952 | } |
| 953 | }; |
| 954 | } |
| 955 | |
| 956 | public int getRetinaScaleFactor() { |
| 957 | int w = glfwGetWindowWidth(window); |
| 958 | if (w == 0) { |
| 959 | return 1 + ((doRetina && Main.os == Main.OS.mac) ? 1 : 0); |
nothing calls this directly
no test coverage detected