src/java.desktop/macosx/classes/sun/awt/CGraphicsDevice.java
changeset 58599 a9b346a481d7
parent 53673 e04d39094915
child 59175 d2123a27cfe7
equal deleted inserted replaced
58598:bdf0a922ae8a 58599:a9b346a481d7
    59     private DisplayMode originalMode;
    59     private DisplayMode originalMode;
    60 
    60 
    61     public CGraphicsDevice(final int displayID) {
    61     public CGraphicsDevice(final int displayID) {
    62         this.displayID = displayID;
    62         this.displayID = displayID;
    63         config = CGLGraphicsConfig.getConfig(this, displayID, 0);
    63         config = CGLGraphicsConfig.getConfig(this, displayID, 0);
       
    64         // initializes default device state, might be redundant step since we
       
    65         // call "displayChanged()" later anyway, but we do not want to leave the
       
    66         // device in an inconsistent state after construction
       
    67         displayChanged();
    64     }
    68     }
    65 
    69 
    66     /**
    70     /**
    67      * Return a list of all configurations.
    71      * Return a list of all configurations.
    68      */
    72      */