示例#1
0
bool UIDisplay::InitialiseDisplay(void)
{
    m_pixelSize    = GetGeometryPriv();
    m_physicalSize = GetPhysicalSizePriv();
    m_refreshRate  = GetRefreshRatePriv();
    m_screen       = GetScreenPriv();
    m_screenCount  = GetScreenCountPriv();

    Sanitise();

    UIEDID::RegisterEDID(m_widget->winId(), m_screen);

    return true;
}
示例#2
0
bool UIDisplay::InitialiseDisplay(void)
{
    // TODO use display when needed
    const char *displaystring = NULL;
    Display* display = XOpenDisplay(displaystring);

    if (display)
    {
        UINVControl::InitialiseMetaModes(display, DefaultScreen(display));
        XCloseDisplay(display);
    }

    m_pixelSize    = GetGeometryPriv();
    m_physicalSize = GetPhysicalSizePriv();
    m_refreshRate  = GetRefreshRatePriv();
    m_screen       = GetScreenPriv();
    m_screenCount  = GetScreenCountPriv();

    Sanitise();

    UIEDID::RegisterEDID(m_widget->winId(), m_screen);

    return true;
}