mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Make processDpi a constexpr and remove unneeded qreal
This commit is contained in:
@@ -219,8 +219,8 @@ void Sandbox::launchApplication() {
|
||||
}
|
||||
|
||||
void Sandbox::setupScreenScale() {
|
||||
const auto processDpi = [](const QDpi &dpi) {
|
||||
return (dpi.first + dpi.second) * qreal(0.5);
|
||||
constexpr auto processDpi = [](const QDpi &dpi) {
|
||||
return (dpi.first + dpi.second) * 0.5;
|
||||
};
|
||||
const auto dpi = processDpi(
|
||||
Sandbox::primaryScreen()->handle()->logicalDpi());
|
||||
|
Reference in New Issue
Block a user