mirror of
https://github.com/rupertwh/bmplib.git
synced 2026-10-01 19:14:01 +00:00
[PR #3] [MERGED] OS/2 icons/pointers #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rupertwh/bmplib/pull/3
Author: @rupertwh
Created: 5/25/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @rupertwh
Base:
main← Head:icons📝 Commits (5)
62c4fa4Add support for OS/2 icons and pointers (IC/PT/CI/CP)8c27ca0Add support for OS/2 BA bitmap arrayse8c7dddOS/2 icons/pointers: refactor boolean flags7c4f7a6refuse 64bit for icons/pointers23ff590OS/2 icons/pointers: require INT result format📊 Changes
7 files changed (+581 additions, -21 deletions)
View changed files
📝
bmp-common.h(+19 -0)➕
bmp-read-icons.c(+353 -0)➕
bmp-read-icons.h(+28 -0)📝
bmp-read-loadimage.c(+43 -1)📝
bmp-read.c(+126 -19)📝
bmplib.h(+7 -1)📝
meson.build(+5 -0)📄 Description
Add support for OS/2 bitmap arrays, icons and pointers.
Bitmap arrays:
bmpread_load_info()will returnBMP_RESULT_ARRAY.Added two functions
int bmpread_array_num(BMPHANDLE h)returns the number of images contained in the fileBMPRESULT bmpread_array_info(BMPHANDLE h, struct BmpArrayInfo *ai, int idx)returns info about and enables access to the contained images.The
handlecontained in the BmpArrayInfo struct can be used to load the respective image like any other BMP file.Icons/Pointers
Still a bit rough around the edges, but it works.
Some limitations apply to both color and b/w icons and pointers:
Needs more work, especially robustness with regards to possibly conflicting settings.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.