Don't force gamma-correction off
The freetype backend can now do selective gamma-correcting, but need to have a useful gamma-value. Fixes: QTBUG-83636 Change-Id: I89e99d0a63b75d15d70763ee0c2459caa761beee Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
c78ea023d4
commit
1bef0aa9b8
@ -233,13 +233,6 @@ QVariant QWaylandIntegration::styleHint(StyleHint hint) const
|
|||||||
if (hint == ShowIsFullScreen && mDisplay->windowManagerIntegration())
|
if (hint == ShowIsFullScreen && mDisplay->windowManagerIntegration())
|
||||||
return mDisplay->windowManagerIntegration()->showIsFullScreen();
|
return mDisplay->windowManagerIntegration()->showIsFullScreen();
|
||||||
|
|
||||||
switch (hint) {
|
|
||||||
case QPlatformIntegration::FontSmoothingGamma:
|
|
||||||
return qreal(1.0);
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return QPlatformIntegration::styleHint(hint);
|
return QPlatformIntegration::styleHint(hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user