< prev index next >

src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java

Print this page

        

*** 61,71 **** private static Boolean xrandrExtSupported; private final Object configLock = new Object(); private SunDisplayChanger topLevels = new SunDisplayChanger(); private DisplayMode origDisplayMode; private boolean shutdownHookRegistered; ! private final int scale; public X11GraphicsDevice(int screennum) { this.screen = screennum; this.scale = initScaleFactor(); } --- 61,71 ---- private static Boolean xrandrExtSupported; private final Object configLock = new Object(); private SunDisplayChanger topLevels = new SunDisplayChanger(); private DisplayMode origDisplayMode; private boolean shutdownHookRegistered; ! private int scale; public X11GraphicsDevice(int screennum) { this.screen = screennum; this.scale = initScaleFactor(); }
*** 486,495 **** --- 486,498 ---- /** * From the DisplayChangedListener interface; called from * X11GraphicsEnvironment when the display mode has been changed. */ public synchronized void displayChanged() { + if (SunGraphicsEnvironment.isUIScaleEnabled()) { + scale = initScaleFactor(); + } // On X11 the visuals do not change, and therefore we don't need // to reset the defaultConfig, config, doubleBufferVisuals, // neither do we need to reset the native data. // pass on to all top-level windows on this screen
< prev index next >