fixed bug for 24bit images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,6 +142,8 @@ int ReadPCX(wxImage *image, wxInputStream& stream)
|
|||||||
// palette at the end of the file. Read it now before
|
// palette at the end of the file. Read it now before
|
||||||
// proceeding.
|
// proceeding.
|
||||||
//
|
//
|
||||||
|
if (format == IMAGE_8BIT)
|
||||||
|
{
|
||||||
pos = stream.TellI();
|
pos = stream.TellI();
|
||||||
stream.SeekI(-769, wxFromEnd);
|
stream.SeekI(-769, wxFromEnd);
|
||||||
|
|
||||||
@@ -150,6 +152,7 @@ int ReadPCX(wxImage *image, wxInputStream& stream)
|
|||||||
|
|
||||||
stream.Read(pal, 768);
|
stream.Read(pal, 768);
|
||||||
stream.SeekI(pos, wxFromStart);
|
stream.SeekI(pos, wxFromStart);
|
||||||
|
}
|
||||||
|
|
||||||
// Allocate memory for a scanline and resize the image.
|
// Allocate memory for a scanline and resize the image.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user