Skip to content

Implementing UncompressPcxImage; Adding tests#1

Open
sjoblomj wants to merge 1 commit into
Starsurgical:bmpfrom
sjoblomj:pcx
Open

Implementing UncompressPcxImage; Adding tests#1
sjoblomj wants to merge 1 commit into
Starsurgical:bmpfrom
sjoblomj:pcx

Conversation

@sjoblomj
Copy link
Copy Markdown

@sjoblomj sjoblomj commented Feb 9, 2026

No description provided.

Comment thread storm/Bitmap.cpp
Comment on lines -176 to +248
if (imagebitdepth == 8) {
if (hasExtendedPalette) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that we should do a more rigorous check than what the previous code did.

Comment thread storm/Bitmap.cpp
reinterpret_cast<uint8_t*>(imagedata) + sizeof(PCXFILEREC),
destbytes,
imagebytes - extra - sizeof(PCXFILEREC),
imagewidth,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The width is not needed

Comment thread storm/Bitmap.cpp
Comment on lines -190 to +261
if (paletteentries && imagebitdepth == 8) {
if (hasExtendedPalette) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that we should do a more rigorous check than what the previous code did.

@heinermann
Copy link
Copy Markdown
Member

out.txt

Quite a few failed tests against the real storm.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants