656 |
|
if (getscan(y) < 0) |
657 |
|
quiterr("cannot seek for picreadline"); |
658 |
|
/* convert scanline */ |
659 |
< |
if (scale) |
660 |
< |
for (i = 0; i < xmax; i++) |
661 |
< |
if (scanline[i][EXP]) |
662 |
< |
scanline[i][EXP] += scale; |
663 |
< |
normcolrs(scanline, xmax); |
659 |
> |
normcolrs(scanline, xmax, scale); |
660 |
|
for (i = 0; i < xmax; i++) { |
661 |
|
l3[i].r = scanline[i][RED]; |
662 |
|
l3[i].g = scanline[i][GRN]; |
669 |
|
int y; |
670 |
|
pixel *l; |
671 |
|
{ |
672 |
< |
bcopy(l, ourras->data.bz+BZPixmapSize(xmax,y), BZPixmapSize(xmax,1)); |
672 |
> |
bcopy((char *)l, (char *)ourras->data.bz+BZPixmapSize(xmax,y), BZPixmapSize(xmax,1)); |
673 |
|
} |
674 |
|
|
675 |
|
|