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

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

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b86
    • CPU:
      x86
    • OS:
      windows_vista

      Backports

        Description

        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);
        }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: