mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 05:46:04 +03:00
fix(gx): fix FindDisplayDevice enumerator argument
This commit is contained in:
parent
97f6949ecd
commit
4aa3967124
@ -223,7 +223,7 @@ int32_t CGxDevice::AdapterInfer(uint16_t& deviceID) {
|
||||
int32_t FindDisplayDevice(PDISPLAY_DEVICE device, uint32_t flag) {
|
||||
DWORD i = 0;
|
||||
device->cb = sizeof(DISPLAY_DEVICE);
|
||||
while (EnumDisplayDevices(nullptr, i, device, 0)) {
|
||||
while (EnumDisplayDevices(nullptr, i++, device, 0)) {
|
||||
if ((device->StateFlags & flag) == flag) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user