diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 6efebff72..580526836 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,9 @@ +January 12, 2008 (Changes by Graf Zahl) +- Fixed: M_SaveBitmap::prior was too small. It must be 3 bytes per pixel, + not 1. +- Replaced INVGEM** graphics with PNG versions so that they have the + correct colors when used on the AltHUD in Strife. + January 11, 2008 - Added support for 24-bit screenshots, so now accelerated 2D screenshots can work. diff --git a/src/m_png.cpp b/src/m_png.cpp index 055fe1d7d..65fad7761 100644 --- a/src/m_png.cpp +++ b/src/m_png.cpp @@ -759,7 +759,7 @@ DWORD CalcSum(Byte *row, int len) // //========================================================================== -static int SelectFilter(Byte row[5][1 + MAXWIDTH*3], Byte prior[MAXWIDTH], int width) +static int SelectFilter(Byte row[5][1 + MAXWIDTH*3], Byte prior[MAXWIDTH*3], int width) { #if 1 // As it turns out, it seems no filtering is the best for Doom screenshots, @@ -894,7 +894,7 @@ static int SelectFilter(Byte row[5][1 + MAXWIDTH*3], Byte prior[MAXWIDTH], int w bool M_SaveBitmap(const BYTE *from, ESSType color_type, int width, int height, int pitch, FILE *file) { - Byte prior[MAXWIDTH]; + Byte prior[MAXWIDTH*3]; Byte buffer[PNG_WRITE_SIZE]; Byte temprow[5][1 + MAXWIDTH*3]; z_stream stream;