mirror of https://github.com/GNOME/gimp.git
plug-ins: don't say for(int x...) in file-pcx.c
This commit is contained in:
parent
5c8c30112a
commit
34485cff86
|
@ -937,10 +937,11 @@ save_less_than_8 (FILE *fp,
|
||||||
gint count = 0;
|
gint count = 0;
|
||||||
guchar byte_to_write = 0x00;
|
guchar byte_to_write = 0x00;
|
||||||
guchar *line;
|
guchar *line;
|
||||||
|
gint x;
|
||||||
|
|
||||||
line = (guchar *) g_malloc (((width + 7) / 8) * bpp);
|
line = (guchar *) g_malloc (((width + 7) / 8) * bpp);
|
||||||
|
|
||||||
for (gint x = 0; x < buf_size; x++)
|
for (x = 0; x < buf_size; x++)
|
||||||
{
|
{
|
||||||
byte_to_write |= (buf[x] << j);
|
byte_to_write |= (buf[x] << j);
|
||||||
j -= bpp;
|
j -= bpp;
|
||||||
|
|
Loading…
Reference in New Issue