mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
fix any errors
This commit is contained in:
parent
978c37d699
commit
87b20389d8
|
@ -91,7 +91,7 @@ ImagingPcxEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
|
||||||
/* when we arrive here, "count" contains the number of
|
/* when we arrive here, "count" contains the number of
|
||||||
bytes having the value of "LAST" that we've already
|
bytes having the value of "LAST" that we've already
|
||||||
seen */
|
seen */
|
||||||
while (state->x < planes * bytes_per_line) {
|
do {
|
||||||
/* If we're encoding an odd width file, and we've
|
/* If we're encoding an odd width file, and we've
|
||||||
got more than one plane, we need to pad each
|
got more than one plane, we need to pad each
|
||||||
color row with padding bytes at the end. Since
|
color row with padding bytes at the end. Since
|
||||||
|
@ -180,7 +180,8 @@ ImagingPcxEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
|
||||||
state->LAST = state->buffer[state->x];
|
state->LAST = state->buffer[state->x];
|
||||||
state->x += 1;
|
state->x += 1;
|
||||||
}
|
}
|
||||||
}
|
} while (state->x < planes * bytes_per_line);
|
||||||
|
|
||||||
/* read next line */
|
/* read next line */
|
||||||
state->state = FETCH;
|
state->state = FETCH;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user