Skip to content

Commit

Permalink
#50 + #51
Browse files Browse the repository at this point in the history
Add WDDM 3 fix for Non-English languages
  • Loading branch information
rcmaehl committed Jun 27, 2021
1 parent c4492b7 commit 29b567d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
WhyNotWin11.exe
WhyNot.txt
WhyNotWin11_stripped.au3
del.au3
14 changes: 10 additions & 4 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Func Main()

$BKC = _WinAPI_GetSysColor($COLOR_WINDOW)

$hGUI = GUICreate("WhyNotWin11", 800, 600, -1, -1, BitAND($WS_POPUP,$WS_BORDER))
$hGUI = GUICreate("WhyNotWin11", 800, 600, -1, -1, BitOr($WS_POPUP,$WS_BORDER))
GUISetBkColor($BKC - 0x070707)
GUISetFont(8.5,$FW_BOLD,"","Arial")

Expand All @@ -80,9 +80,13 @@ Func Main()
;;;
Else
GUICtrlCreateIcon(".\includes\Git.ico", -1, 12, 100, 32, 32)
GUICtrlCreateIcon(".\includes\PP.ico", -1, 56, 100, 32, 32, "", $WS_EX_TRANSPARENT)
GUICtrlSetBkColor(-1, $BKC - 0x191919)
GUICtrlCreateIcon(".\includes\PP.ico", -1, 56, 100, 32, 32)
GUICtrlSetBkColor(-1, $BKC - 0x191919)
GUICtrlCreateIcon(".\includes\EM.ico", -1, 12, 144, 32, 32)
GUICtrlCreateIcon(".\includes\Web.ico", -1, 56, 144, 32, 32, "", $WS_EX_TRANSPARENT)
GUICtrlSetBkColor(-1, $BKC - 0x191919)
GUICtrlCreateIcon(".\includes\Web.ico", -1, 56, 144, 32, 32)
GUICtrlSetBkColor(-1, $BKC - 0x191919)
EndIf

GUICtrlCreateLabel("Check for Updates", 5, 560, 90, 40, $SS_CENTER+$SS_CENTERIMAGE)
Expand Down Expand Up @@ -341,11 +345,13 @@ Func Main()
; DirectX 12 takes a while. Grab the result once done
Case Not ProcessExists("dxdiag.exe") And FileExists($hDXFile)
Select
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: 3") ; Non-English Languages
ContinueCase
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: WDDM 3")
GUICtrlSetData($hCheck[5][0], "OK")
GUICtrlSetBkColor($hCheck[5][0], 0x4CC355)
GUICtrlSetData($hCheck[5][2], "DirectX 12, WDDM 3")
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: 2") ; SQ1/SQ2
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: 2") ; Non-English Languages
ContinueCase
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: WDDM 2")
GUICtrlSetData($hCheck[5][0], "OK")
Expand Down

0 comments on commit 29b567d

Please sign in to comment.