summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/qt/PlatformScreenQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/qt/PlatformScreenQt.cpp')
-rw-r--r--WebCore/platform/qt/PlatformScreenQt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/qt/PlatformScreenQt.cpp b/WebCore/platform/qt/PlatformScreenQt.cpp
index db34e21..4db8bd1 100644
--- a/WebCore/platform/qt/PlatformScreenQt.cpp
+++ b/WebCore/platform/qt/PlatformScreenQt.cpp
@@ -86,7 +86,7 @@ int screenDepthPerComponent(Widget* w)
bool screenIsMonochrome(Widget* w)
{
- return QApplication::desktop()->screen(screenNumber(w))->numColors() < 2;
+ return QApplication::desktop()->screen(screenNumber(w))->colorCount() == 2;
}
FloatRect screenRect(Widget* w)