mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- Fixed: M_SaveBitmap::prior was too small. It must be 3 bytes per pixel, not 1.
SVN r699 (trunk)
This commit is contained in:
parent
1788e0a3cd
commit
f691c973d4
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue