diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-20 12:32:01 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-08 11:27:55 +0100 |
commit | f2c664a04fa6cf49b3719a0cc4c59f57bab04948 (patch) | |
tree | f0f9fe151dcb2260b953d3bc840bae6b3796a1a6 /wr/write-ps.c | |
parent | f897a5ee212491ea5d0560eeb1ca4f6bcfbfe111 (diff) | |
download | fbida-f2c664a04fa6cf49b3719a0cc4c59f57bab04948.tar.gz |
use pixman images for storage
Diffstat (limited to 'wr/write-ps.c')
-rw-r--r-- | wr/write-ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wr/write-ps.c b/wr/write-ps.c index 261a092..b1a2877 100644 --- a/wr/write-ps.c +++ b/wr/write-ps.c @@ -436,7 +436,7 @@ ps_write(FILE *fp, struct ida_image *img) /* image data + ps footer */ if (ps.ori == PORTRAIT) { - p = img->data; + p = ida_image_scanline(img, 0); for (y = 0; y < img->i.height; y++) { for (x = 0; x < img->i.width; x++) { if (0 == (x % 10)) @@ -448,7 +448,7 @@ ps_write(FILE *fp, struct ida_image *img) } } else { for (x = img->i.width-1; x != -1; x--) { - p = img->data + 3*x; + p = ida_image_scanline(img, 0) + 3*x; for (y = 0; y < img->i.height; y++) { if (0 == (y % 10)) fprintf(fp,"\n"); |