user32: fix PNG cursor bitmap row alignment

Fixed bitmap row alignment calculation in PNG cursor loading to ensure proper 32-bit DWORD alignment. Changed rowbytes calculation from (width * bpp + 7) / 8 to (width * bpp + 31) / 32 * 4 for correct byte alignment. Also fixed mask_size calculation to use proper DWORD alignment. Removed the incorrect height doubling in biHeight field since the bitmap and mask are now properly aligned and don't require separate height allocation.

Signed-off-by: Jiajin Cui cuijiajin@uniontech.com

Edited by Jiajin Cui

Merge request reports

Loading