Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/screen.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 67 | if (force_dpi > 0) { | |||
---|---|---|---|---|---|
68 | return QDpi(force_dpi, force_dpi); | 68 | return QDpi(force_dpi, force_dpi); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | return QPlatformScreen::logicalDpi(); | 71 | return QPlatformScreen::logicalDpi(); | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | qreal Screen::devicePixelRatio() const | 74 | qreal Screen::devicePixelRatio() const | ||
75 | { | 75 | { | ||
76 | // FIXME | ||||
77 | // Qt's concept of max high DPI qApp->devicePixelRatio is (currently) static for the app lifespan | ||||
78 | // this is used in icon loading | ||||
79 | // rest of the patch can be merged without this bodge, but it makes things look nicer | ||||
80 | return 2; | ||||
76 | return m_screen != -1 ? screens()->scale(m_screen) : 1.0; | 81 | return m_screen != -1 ? screens()->scale(m_screen) : 1.0; | ||
77 | } | 82 | } | ||
78 | 83 | | |||
79 | } | 84 | } | ||
80 | } | 85 | } |