mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
Disable hardware acceleration
This commit is contained in:
@@ -3897,7 +3897,15 @@
|
|||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>BUG_FIX</changeType>
|
<changeType>BUG_FIX</changeType>
|
||||||
<description>The app crashes if there's a component that is reduced to 0 pixels with 'Cache Boost' enabled</description>
|
<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>
|
||||||
|
<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>
|
</changes>
|
||||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||||
</org.diylc.appframework.update.Version>
|
</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 Image bufferImage;
|
||||||
private GraphicsConfiguration screenGraphicsConfiguration;
|
private GraphicsConfiguration screenGraphicsConfiguration;
|
||||||
|
|
||||||
public boolean useHardwareAcceleration;
|
public boolean useHardwareAcceleration = false;
|
||||||
|
|
||||||
// static final EnumSet<DrawOption> DRAW_OPTIONS =
|
// static final EnumSet<DrawOption> DRAW_OPTIONS =
|
||||||
// EnumSet.of(DrawOption.GRID,
|
// EnumSet.of(DrawOption.GRID,
|
||||||
@@ -91,8 +91,8 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
|||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
this.configManager = configManager;
|
this.configManager = configManager;
|
||||||
|
|
||||||
this.useHardwareAcceleration =
|
// this.useHardwareAcceleration =
|
||||||
configManager.readBoolean(IPlugInPort.HARDWARE_ACCELERATION, false);
|
// configManager.readBoolean(IPlugInPort.HARDWARE_ACCELERATION, false);
|
||||||
setFocusable(true);
|
setFocusable(true);
|
||||||
initializeListeners();
|
initializeListeners();
|
||||||
initializeDnD();
|
initializeDnD();
|
||||||
@@ -423,7 +423,7 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setUseHardwareAcceleration(boolean useHardwareAcceleration) {
|
public void setUseHardwareAcceleration(boolean useHardwareAcceleration) {
|
||||||
this.useHardwareAcceleration = useHardwareAcceleration;
|
// this.useHardwareAcceleration = useHardwareAcceleration;
|
||||||
bufferImage = null;
|
// bufferImage = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,9 +96,9 @@ public class ConfigPlugin implements IPlugIn {
|
|||||||
swingUI.injectMenuAction(
|
swingUI.injectMenuAction(
|
||||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Extra Working Area", IPlugInPort.EXTRA_SPACE_KEY, true),
|
ActionFactory.getInstance().createConfigAction(plugInPort, "Extra Working Area", IPlugInPort.EXTRA_SPACE_KEY, true),
|
||||||
CONFIG_MENU);
|
CONFIG_MENU);
|
||||||
swingUI.injectMenuAction(
|
// swingUI.injectMenuAction(
|
||||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Hardware Acceleration", IPlugInPort.HARDWARE_ACCELERATION, false),
|
// ActionFactory.getInstance().createConfigAction(plugInPort, "Hardware Acceleration", IPlugInPort.HARDWARE_ACCELERATION, false),
|
||||||
CONFIG_MENU);
|
// CONFIG_MENU);
|
||||||
swingUI.injectMenuAction(
|
swingUI.injectMenuAction(
|
||||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Hi-Quality Rendering",
|
ActionFactory.getInstance().createConfigAction(plugInPort, "Hi-Quality Rendering",
|
||||||
IPlugInPort.HI_QUALITY_RENDER_KEY, false), CONFIG_MENU);
|
IPlugInPort.HI_QUALITY_RENDER_KEY, false), CONFIG_MENU);
|
||||||
|
|||||||
Reference in New Issue
Block a user