marlersoft / zigwin32

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

DescribePixelFormat expects type PFD_PIXEL_TYPE but this should be int instead #23

Open ricknijhuis opened 10 months ago

ricknijhuis commented 10 months ago

Currently DescribePixelFormat expects type PFD_PIXEL_TYPE for the parameter iPixelFormat that contains 2 values, RGBA = 0 and COLORINDEX = 1. I am not sure where these values come from because the iPixelFormat should be any valid pixelformat not just 0 and 1. I believe this might be fixed by just regenerating the code using the latest version of win32meta as they had this issue fixed, see: https://github.com/microsoft/win32metadata/issues/1383