size was calculated by "width + padding height", should be "(width + padding) height." this doesn't seem to have ever resulted in an error, though it would produce a bitmask that is far too small, in cases where width is large and padding is small.
The current implementation has been robust for years given a wide variety of cursor inputs from the wild, can you confirm the same for your implementation?
size was calculated by "width + padding height", should be "(width + padding) height." this doesn't seem to have ever resulted in an error, though it would produce a bitmask that is far too small, in cases where width is large and padding is small.
new expression to calculate bitmask size in bytes, copied from https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createbitmap