Skip to content

Commit acf13a3

Browse files
committed
fix: remove junk code
1 parent d37973a commit acf13a3

1 file changed

Lines changed: 4 additions & 19 deletions

File tree

jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglCanvas.java

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ public JoyInput getJoyInput() {
806806
@Override protected void showWindow() { }
807807
/** (non-Javadoc) */
808808
@Override protected void setWindowIcon(final AppSettings settings) { }
809+
/**(non-Javadoc) */
810+
@Override public Vector2f getWindowContentScale(Vector2f store) {
811+
return store == null ? new Vector2f() : store;
812+
}
809813

810814
/**
811815
* {@inheritDoc }
@@ -839,25 +843,6 @@ protected void updateSizes() {
839843
}
840844
}
841845

842-
/**
843-
* {@inheritDoc }
844-
*/
845-
@Override
846-
public Vector2f getWindowContentScale(Vector2f store) {
847-
if (store == null) store = new Vector2f();
848-
849-
GraphicsConfiguration gc = canvas.getGraphicsConfiguration();
850-
if (gc == null) {
851-
return store;
852-
}
853-
AffineTransform at = gc.getDefaultTransform();
854-
float sx = (float) at.getScaleX(),
855-
sy = (float) at.getScaleY();
856-
857-
store.set(sx, sy);
858-
return store;
859-
}
860-
861846
/**
862847
* (non-Javadoc)
863848
* @see com.jme3.system.lwjgl.LwjglContext#printContextInitInfo()

0 commit comments

Comments
 (0)