Wrong screen size.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 7u6
    • Component/s: javafx
    • Environment:

      JavaFX
      2.2.0-b21
      Toolkit = QuantumToolkit
      Pipeline = ES2Pipeline
      Hardware acceleration ENABLED

      Operating System
      Mac OS X, x86_64, 10.8.3

      Java Version
      1.7.0_06, Oracle Corporation, 1.7.0_06-b23

      When I try to get screensize like this:
              Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
              double w = primaryScreenBounds.getWidth();
              double h = primaryScreenBounds.getHeight();
              double xMax = primaryScreenBounds.getMaxX();
              double yMax = primaryScreenBounds.getMaxY();
      I get that:
      w = 1440.0
      h = 874.0
      xMax = 1440.0
      yMax = 896.0
      But my screen on the MacBook Pro is 1440x900 px! I check it.
      So, where is my 4 pixels from yMax?

            Assignee:
            Martin Sládeček
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: