Ejemplo n.º 1
0
bool screenIsMonochrome(Widget* widget)
{
    GtkWidget* container = GTK_WIDGET(widget->root()->hostWindow()->platformWindow());
    if (!container)
        return false;

    return screenDepth(widget) < 2;
}
Ejemplo n.º 2
0
bool screenIsMonochrome(Widget* widget)
{
    GtkWidget* container = GTK_WIDGET(widget->containingWindow());
    if (!container)
        return false;

    return screenDepth(widget) < 2;
}
Ejemplo n.º 3
0
unsigned Screen::colorDepth() const
{
    if (!m_frame)
        return 0;
#ifdef LOG_MODS_FP
	logFPCalls(m_frame, "Screen::colorDepth");
#endif
    return static_cast<unsigned>(screenDepth(m_frame->view()));
}
QImage::Format QEGLDeviceIntegration::screenFormat() const
{
    return screenDepth() == 16 ? QImage::Format_RGB16 : QImage::Format_RGB32;
}
Ejemplo n.º 5
0
int screenDepthPerComponent(Widget* widget)
{
    return screenDepth(widget);
}
Ejemplo n.º 6
0
bool screenIsMonochrome(Widget* widget)
{
    return screenDepth(widget) < 2;
}
Ejemplo n.º 7
0
int screenDepthPerComponent(Widget* w)
{
    return screenDepth(w) / 3;
}
int screenDepthPerComponent(Widget* widget)
{
    // FIXME: Assumes RGB -- not sure if this is right.
    return screenDepth(widget) / 3;
}
Ejemplo n.º 9
0
QImage::Format QEglFSHooks::screenFormat() const
{
    return screenDepth() == 16 ? QImage::Format_RGB16 : QImage::Format_RGB32;
}
Ejemplo n.º 10
0
unsigned Screen::pixelDepth() const
{
    if (!m_frame)
        return 0;
    return static_cast<unsigned>(screenDepth(m_frame->view()));
}