Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6417505

GraphicsDevice.getDisplayMode() returns null with ddraw disabled, Vista

XMLWordPrintable

    • 2d
    • b86
    • x86
    • windows_vista

        Use the attached testcase to reproduce the problem.

        The results of the test running is following:

        on Vista:
        using -Dsun.java2d.noddraw=True returns null
        using -Dsun.java2d.noddraw=False returns not null value

        on XP:
        returns not null value in both cases

        ============TESTCASE==================================

        import java.awt.*;

        public class GetDisplayModeTest{

        public static final void main(String args[]){
        GraphicsDevice gd =
        GraphicsEnvironment.getLocalGraphicsEnvironment().
        getDefaultScreenDevice();
        if (!gd.isFullScreenSupported()) {
        System.out.println("Full Screen is not supported, test considered passed.");
        return;
        }
        DisplayMode dm = gd.getDisplayMode();
        System.out.println("Display Mode = "+dm);
        }
        }

              tdv Dmitri Trembovetski (Inactive)
              dcherepanov Dmitry Cherepanov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: