MantisBT - LibNSBMP
View Issue Details
0002639LibNSBMP[All Projects] Generalpublic2019-03-19 22:462019-05-06 14:48
Reportergrim 
Assigned ToMichael Drake 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
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 Informationhttps://en.wikipedia.org/wiki/ICO_(file_format)
http://fileformats.archiveteam.org/wiki/ICO
http://fileformats.archiveteam.org/wiki/CUR
http://fileformats.archiveteam.org/wiki/Windows_Animated_Cursor
TagsNo tags attached.
Attached Filespatch libnsbmp-20190319-cur.patch (582) 2019-03-19 22:46
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=578&type=bug

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 14:48Michael DrakeAssigned To => Michael Drake
2019-05-06 14:48Michael DrakeStatusnew => assigned