(svn r2511) Fix an old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped
This commit is contained in:
@@ -332,7 +332,7 @@ static bool MakePCXImage(const char *name, ScreenshotCallback *callb, void *user
|
|||||||
for (i = 0; i != n; i++) {
|
for (i = 0; i != n; i++) {
|
||||||
int runcount = 1;
|
int runcount = 1;
|
||||||
byte *bufp = buff + i * w;
|
byte *bufp = buff + i * w;
|
||||||
byte runchar = buff[0];
|
byte runchar = *bufp++;
|
||||||
uint left;
|
uint left;
|
||||||
|
|
||||||
// for each pixel...
|
// for each pixel...
|
||||||
|
Reference in New Issue
Block a user