bool screenIsMonochrome(Widget* widget)
{
    GtkWidget* container = GTK_WIDGET(widget->root()->hostWindow()->platformWindow());
    if (!container)
        return false;

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

    return screenDepth(widget) < 2;
}
Exemple #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;
}
Exemple #5
0
int screenDepthPerComponent(Widget* widget)
{
    return screenDepth(widget);
}
Exemple #6
0
bool screenIsMonochrome(Widget* widget)
{
    return screenDepth(widget) < 2;
}
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;
}
QImage::Format QEglFSHooks::screenFormat() const
{
    return screenDepth() == 16 ? QImage::Format_RGB16 : QImage::Format_RGB32;
}
Exemple #10
0
unsigned Screen::pixelDepth() const
{
    if (!m_frame)
        return 0;
    return static_cast<unsigned>(screenDepth(m_frame->view()));
}