From 18e63525b19e89e313b3b840cabb47fc95e06cfd Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Tue, 18 Oct 2011 15:19:45 +0000 Subject: [PATCH] Attempt to fix fullscreen display on Windows by disabling D3D pipeline (used internally by the JVM for fullscreen). Please note that it is absolutely not related to our D3D JAWTRenderer (the fullscreen bug also appears with JMF's AWTRenderer). --- src/net/java/sip/communicator/launcher/SIPCommunicator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/launcher/SIPCommunicator.java b/src/net/java/sip/communicator/launcher/SIPCommunicator.java index 738d43278..cec10904b 100644 --- a/src/net/java/sip/communicator/launcher/SIPCommunicator.java +++ b/src/net/java/sip/communicator/launcher/SIPCommunicator.java @@ -47,7 +47,6 @@ public class SIPCommunicator private static String[] legacyDirNames = {".sip-communicator", "SIP Communicator"}; - /** * Starts the SIP Communicator. * @@ -62,6 +61,11 @@ public static void main(String[] args) String vmVendor = System.getProperty("java.vendor"); String osName = System.getProperty("os.name"); + // disable Direct 3D pipeline (used for fullscreen) before + // displaying anything (frame, ...) + if(osName.startsWith("Windows")) + System.setProperty("sun.java2d.d3d", "false"); + /* * SC_HOME_DIR_* are specific to the OS so make sure they're configured * accordingly before any other application-specific logic depending on