Skip to content

Commit

Permalink
Fix DPI usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Nov 29, 2021
1 parent 10b5f1e commit d7535fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions WhyNotWin11.au3
Expand Up @@ -13,6 +13,7 @@
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#AutoIt3Wrapper_Res_Compatibility=Win8,Win81,Win10
#AutoIt3Wrapper_Res_HiDpi=Y
#AutoIt3Wrapper_Res_Icon_Add=Assets\GitHub.ico
#AutoIt3Wrapper_Res_Icon_Add=Assets\PayPal.ico
#AutoIt3Wrapper_Res_Icon_Add=Assets\Discord.ico
Expand Down
4 changes: 2 additions & 2 deletions includes/_Theming.au3
Expand Up @@ -24,7 +24,7 @@ Global $tColorCurve = DllStructCreate($tagCOLORCURVEEFFECTPARAMS), $iType = $iAd
; Return values .: None
; Author ........: UEZ
; Modified ......:
; Remarks .......:
; Remarks .......: Requires #AutoIt3Wrapper_Res_HiDpi=Y
; Related .......:
; Link ..........: http://www.autoitscript.com/forum/topic/159612-dpi-resolution-problem/?hl=%2Bdpi#entry1158317
; Example .......: No
Expand All @@ -33,7 +33,7 @@ Func _GDIPlus_GraphicsGetDPIRatio($iDPIDef = 96)
_GDIPlus_Startup()
Local $hGfx = _GDIPlus_GraphicsCreateFromHWND(0)
If @error Then Return SetError(1, @extended, 0)
#forcedef $__g_hGDIPDll
#forcedef $__g_hGDIPDll, $ghGDIPDll

Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetDpiX", "handle", $hGfx, "float*", 0)

Expand Down

0 comments on commit d7535fa

Please sign in to comment.