File tree Expand file tree Collapse file tree
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl Expand file tree Collapse file tree Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments