Bug 961958 - on Vista and above use SetProcessDPIAware in the installers so fonts aren't blurry on HDPI devices. r=bbondy

This commit is contained in:
Robert Strong 2014-01-24 10:38:30 -08:00
parent 13c5306090
commit c80f4d9f20
4 changed files with 16 additions and 0 deletions

View File

@ -1048,6 +1048,10 @@ Function .onInit
${InstallOnInitCommon} "$(WARN_MIN_SUPPORTED_OS_MSG)"
${If} ${AtLeastWinVista}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!insertmacro InitInstallOptionsFile "options.ini"
!insertmacro InitInstallOptionsFile "shortcuts.ini"
!insertmacro InitInstallOptionsFile "components.ini"

View File

@ -132,6 +132,10 @@ Function un.onInit
; This only effects LoadLibrary calls and not implicitly loaded DLLs.
System::Call 'kernel32::SetDllDirectoryW(w "")'
${If} ${AtLeastWinVista}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
StrCpy $BrandFullNameDA "${MaintFullName}"
StrCpy $BrandFullName "${MaintFullName}"
FunctionEnd

View File

@ -336,6 +336,10 @@ Function .onInit
; Require elevation if the user can elevate
${ElevateUAC}
${If} ${AtLeastWinVista}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
; Create a mutex to prevent multiple launches of the same stub installer in
; the same location on the file system. This intentionally won't handle the
; case where someone runs multiple copies of the stub on the file system but

View File

@ -685,6 +685,10 @@ Function un.onInit
${un.UninstallUnOnInitCommon}
${If} ${AtLeastWinVista}
System::Call 'user32::SetProcessDPIAware()'
${EndIf}
!insertmacro InitInstallOptionsFile "unconfirm.ini"
FunctionEnd