diff options
author | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2021-04-13 11:30:28 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2021-04-14 13:00:12 +0900 |
commit | 2df3d8ed415d01b169071e01b775d920292df555 (patch) | |
tree | 771f31ab9a8e5cf9e04356842b58210f745b62c9 /src/widgets/util | |
parent | 94e03e506a0e953f72c21c4ca827174a3d1f0d73 (diff) |
Cleanup leftover QWS
QWS is replaced with QPA in Qt5
Change-Id: Iccec38e55ae23a27ebecd8010e1df7bba8aa5a33
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets/util')
-rw-r--r-- | src/widgets/util/qcolormap.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/widgets/util/qcolormap.cpp b/src/widgets/util/qcolormap.cpp index ba975de4bb..81a654e7e6 100644 --- a/src/widgets/util/qcolormap.cpp +++ b/src/widgets/util/qcolormap.cpp @@ -175,12 +175,6 @@ uint QColormap::pixel(const QColor &color) const const int green_mask = 0x00ff00; const int blue_mask = 0x0000ff; const int tg = g << green_shift; -#ifdef QT_QWS_DEPTH_32_BGR - if (qt_screen->pixelType() == QScreen::BGRPixel) { - const int tb = b << red_shift; - return 0xff000000 | (r & blue_mask) | (tg & green_mask) | (tb & red_mask); - } -#endif const int tr = r << red_shift; return 0xff000000 | (b & blue_mask) | (tg & green_mask) | (tr & red_mask); } @@ -202,13 +196,6 @@ const QColor QColormap::colorAt(uint pixel) const const int red_mask = 0xff0000; const int green_mask = 0x00ff00; const int blue_mask = 0x0000ff; -#ifdef QT_QWS_DEPTH_32_BGR - if (qt_screen->pixelType() == QScreen::BGRPixel) { - return QColor((pixel & blue_mask), - (pixel & green_mask) >> green_shift, - (pixel & red_mask) >> red_shift); - } -#endif return QColor((pixel & red_mask) >> red_shift, (pixel & green_mask) >> green_shift, (pixel & blue_mask)); |