Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerating Displays. #17

Open
eddineimad0 opened this issue May 2, 2023 · 0 comments
Open

Enumerating Displays. #17

eddineimad0 opened this issue May 2, 2023 · 0 comments

Comments

@eddineimad0
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant