mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1254020 - Always compute theme scaling factor when per-monitor dpi aware, even if only a single display is currently present. r=emk a=ritu
MozReview-Commit-ID: 9KUukZ7tcxu
This commit is contained in:
parent
daeb4f338c
commit
c9c9658327
@ -1553,7 +1553,7 @@ AssumeThemePartAndStateAreTransparent(int32_t aPart, int32_t aState)
|
||||
static inline double
|
||||
GetThemeDpiScaleFactor(nsIFrame* aFrame)
|
||||
{
|
||||
if (WinUtils::IsPerMonitorDPIAware() && GetSystemMetrics(SM_CMONITORS) > 1) {
|
||||
if (WinUtils::IsPerMonitorDPIAware()) {
|
||||
nsIWidget* rootWidget = aFrame->PresContext()->GetRootWidget();
|
||||
if (rootWidget) {
|
||||
double systemScale = WinUtils::SystemScaleFactor();
|
||||
|
Loading…
Reference in New Issue
Block a user