mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Disable hardware acceleration
This commit is contained in:
@@ -3898,6 +3898,14 @@
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>The app crashes if there's a component that is reduced to 0 pixels with 'Cache Boost' enabled</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Removed 'Hardware Acceleration' feature as it causes issues with modern graphic cards</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>When opening files from the 'Recent Files' menu, show busy cursor instead of blocking the main app thread</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -73,7 +73,7 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
||||
private Image bufferImage;
|
||||
private GraphicsConfiguration screenGraphicsConfiguration;
|
||||
|
||||
public boolean useHardwareAcceleration;
|
||||
public boolean useHardwareAcceleration = false;
|
||||
|
||||
// static final EnumSet<DrawOption> DRAW_OPTIONS =
|
||||
// EnumSet.of(DrawOption.GRID,
|
||||
@@ -91,8 +91,8 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
||||
this.plugInPort = plugInPort;
|
||||
this.configManager = configManager;
|
||||
|
||||
this.useHardwareAcceleration =
|
||||
configManager.readBoolean(IPlugInPort.HARDWARE_ACCELERATION, false);
|
||||
// this.useHardwareAcceleration =
|
||||
// configManager.readBoolean(IPlugInPort.HARDWARE_ACCELERATION, false);
|
||||
setFocusable(true);
|
||||
initializeListeners();
|
||||
initializeDnD();
|
||||
@@ -423,7 +423,7 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
||||
}
|
||||
|
||||
public void setUseHardwareAcceleration(boolean useHardwareAcceleration) {
|
||||
this.useHardwareAcceleration = useHardwareAcceleration;
|
||||
bufferImage = null;
|
||||
// this.useHardwareAcceleration = useHardwareAcceleration;
|
||||
// bufferImage = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,9 +96,9 @@ public class ConfigPlugin implements IPlugIn {
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Extra Working Area", IPlugInPort.EXTRA_SPACE_KEY, true),
|
||||
CONFIG_MENU);
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Hardware Acceleration", IPlugInPort.HARDWARE_ACCELERATION, false),
|
||||
CONFIG_MENU);
|
||||
// swingUI.injectMenuAction(
|
||||
// ActionFactory.getInstance().createConfigAction(plugInPort, "Hardware Acceleration", IPlugInPort.HARDWARE_ACCELERATION, false),
|
||||
// CONFIG_MENU);
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Hi-Quality Rendering",
|
||||
IPlugInPort.HI_QUALITY_RENDER_KEY, false), CONFIG_MENU);
|
||||
|
||||
Reference in New Issue
Block a user