MantisBT - LibNSBMP
View Issue Details
0002639LibNSBMP[All Projects] Generalpublic2019-03-19 22:462019-05-06 15:48
Assigned ToMichael Drake 
PlatformOSOS Version
Fixed in CI build #
Reported in CI build #
Summary0002639: The "cursor" subtype of the icon format is not recognized.
DescriptionWindows Icon files have two subtypes "icon" and "cursor". The only difference between them is that with "icon" values for colorplanes and bits per pixel can be defined (which are ignored by libnsbmp from what I can see). While "cursor" has values for hotspot position (which ain't relevant in this case). So the fix is very trivial.

Why this matters to me is because I use libnsbmp to decode the embedded icons in Windows Animated Cursor files. The frames can be of ether subtype. And what I do now is simply altering the byte in the header to make libnsbmp accept the "cursor" subtype. (It works but is kind of uggly.)
Additional Information
TagsNo tags attached.
Attached Filespatch libnsbmp-20190319-cur.patch (582) 2019-03-19 22:46

There are no notes attached to this issue.

Issue History
2019-03-19 22:46grimNew Issue
2019-03-19 22:46grimFile Added: libnsbmp-20190319-cur.patch
2019-05-06 15:48Michael DrakeAssigned To => Michael Drake
2019-05-06 15:48Michael DrakeStatusnew => assigned