X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FMain.java;h=39e23d2606d51dee1b01c762d6d3d6c9ccb2ed16;hp=4fd76f0a11d16eac099af0e35c56ca3b496124e0;hb=05d23fde131a7d19b378c632c6cc6b7924d8ab4d;hpb=81eda5b4fc7bdf083aa6af02c971d3a75a3c39d5 diff --git a/src/org/ibex/core/Main.java b/src/org/ibex/core/Main.java index 4fd76f0..39e23d2 100644 --- a/src/org/ibex/core/Main.java +++ b/src/org/ibex/core/Main.java @@ -15,6 +15,17 @@ import org.ibex.graphics.*; /** Entry point for the Ibex Engine; handles splash screen, initial xwar loading, and argument processing */ public class Main { + // ugly hack: we have to set these properties before AWT loads + static { + System.setProperty("apple.awt.showGrowBox", "false"); + System.setProperty("apple.awt.graphics.EnableLazyDrawing", "40"); + System.setProperty("apple.awt.graphics.EnableLazyDrawing", "true"); + System.setProperty("apple.awt.window.position.forceSafeUserPositioning", "true"); + System.setProperty("apple.awt.window.position.forceSafeCreation", "true"); + System.setProperty("com.apple.hwaccel", "true"); + System.setProperty("com.apple.forcehwaccel", "true"); + } + /** * FEATURE: this should be implemented using self-emulation * Used for security checks. If this is null, it means that only