- removed hardcoded width limit for screenshots
https://forum.zdoom.org/viewtopic.php?t=66204
This commit is contained in:
parent
3071723a67
commit
dfecc1229f
2 changed files with 21 additions and 5 deletions
|
|
@ -366,7 +366,8 @@ inline void putc(unsigned char chr, FileWriter *file)
|
|||
void WritePCXfile (FileWriter *file, const uint8_t *buffer, const PalEntry *palette,
|
||||
ESSType color_type, int width, int height, int pitch)
|
||||
{
|
||||
uint8_t temprow[MAXWIDTH * 3];
|
||||
TArray<uint8_t> temprow_storage(width * 3, true);
|
||||
uint8_t *temprow = &temprow_storage[0];
|
||||
const uint8_t *data;
|
||||
int x, y;
|
||||
int runlen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue