marlersoft / zigwin32

Zig bindings for Win32 generated by https://github.com/marlersoft/zigwin32gen
MIT License
234 stars 30 forks source link

Enumerating Displays. #17

Open eddineimad0 opened 1 year ago

eddineimad0 commented 1 year ago

https://github.com/marlersoft/zigwin32/blob/b70e7f818d77a0c0f39b0bd9c549e16439ff5780/win32/graphics/gdi.zig#LL1756C1-L1756C1

Shouldn't this be just a u32 instead of an enum, since when calling EnumDisplaySettings() to enumerate all possible display settings you will need to keep incrementing the index until the function returns 0, and as far as i know @intToEnum() causes undefined behaviour when passed an out of range int.