Changeset 74137 in webkit


Ignore:
Timestamp:
Dec 15, 2010 1:00:00 PM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-12-15 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Antonio Gomes.

[Qt] screenIsMonochrome() is broken
https://bugs.webkit.org/show_bug.cgi?id=49957

  • platform/qt/PlatformScreenQt.cpp: (WebCore::screenIsMonochrome):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74132 r74137  
     12010-12-15  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] screenIsMonochrome() is broken
     6        https://bugs.webkit.org/show_bug.cgi?id=49957
     7
     8        * platform/qt/PlatformScreenQt.cpp:
     9        (WebCore::screenIsMonochrome):
     10
    1112010-12-15  Martin Robinson  <mrobinson@igalia.com>
    212
  • trunk/WebCore/platform/qt/PlatformScreenQt.cpp

    r71483 r74137  
    8787bool screenIsMonochrome(Widget* w)
    8888{
    89     return QApplication::desktop()->screen(screenNumber(w))->numColors() < 2;
     89    return QApplication::desktop()->screen(screenNumber(w))->colorCount() == 2;
    9090}
    9191
Note: See TracChangeset for help on using the changeset viewer.