Skip to content

Commit

Permalink
#27, #22, #4
Browse files Browse the repository at this point in the history
ACTUALLY Fix #27
Finish WDDM2 #22
Continue work on #4
  • Loading branch information
rcmaehl committed Jun 26, 2021
1 parent eb8b308 commit 821ad9c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ EndFunc
Func Main()

$hGUI = GUICreate("WhyNotWin11", 800, 600, -1, -1, $WS_POPUP+$WS_BORDER)
GUISetBkColor(0xF8F8F8)
GUISetBkColor(_WinAPI_GetSysColor($COLOR_WINDOW))

GUICtrlSetDefColor(_WinAPI_GetSysColor($COLOR_WINDOWTEXT))
GUICtrlSetDefBKColor(_WinAPI_GetSysColor($COLOR_WINDOW))

; Top Most Interaction for Update Text
$hUpdate = GUICtrlCreateLabel("", 5, 560, 90, 40, $SS_CENTER+$SS_CENTERIMAGE)
Expand Down Expand Up @@ -239,7 +240,7 @@ Func Main()
EndIf
If $aMem = 0 Then
$aMem = MemGetStats()
$aMem = $aMem1
$aMem = $aMem[1]
$aMem = Ceiling($aMem)
EndIf

Expand Down Expand Up @@ -321,16 +322,16 @@ Func Main()

; DirectX 12 takes a while. Grab the result once done
Case Not ProcessExists("dxdiag.exe") And FileExists($hDXFile)
Select ;Driver Model: WDDM 2
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "DDI Version: 12")
Select
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: WDDM 2")
GUICtrlSetData($hCheck[5][0], "OK")
GUICtrlSetBkColor($hCheck[5][0], 0x4CC355)
GUICtrlSetData($hCheck[5][2], "DirectX 12, WDDM 2")
Case Not StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "DDI Version: 12")
Case Not StringInStr(FileRead($hDXFile), "DDI Version: 12") And StringInStr(FileRead($hDXFile), "Driver Model: WDDM 2")
GUICtrlSetData($hCheck[5][0], "X")
GUICtrlSetBkColor($hCheck[5][0], 0xFA113D)
GUICtrlSetData($hCheck[5][2], "No DirectX 12, but WDDM2")
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And Not StringInStr(FileRead($hDXFile), "DDI Version: 12")
Case StringInStr(FileRead($hDXFile), "DDI Version: 12") And Not StringInStr(FileRead($hDXFile), "Driver Model: WDDM 2")
GUICtrlSetData($hCheck[5][0], "X")
GUICtrlSetBkColor($hCheck[5][0], 0xFA113D)
GUICtrlSetData($hCheck[5][2], "DirectX 12, but no WDDM2")
Expand Down

0 comments on commit 821ad9c

Please sign in to comment.