aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti
diff options
context:
space:
mode:
authorMichael Stroucken <mxs@cmu.edu>2017-07-21 19:33:55 -0400
committerDavid du Colombier <0intro@gmail.com>2017-07-23 11:11:56 +0000
commit4a8c0c75ffd40d08837d6937e1e995c68ceb276e (patch)
tree8719951d0a5726d866bf90d6c3fba59bcefc291d /src/cmd/venti
parent7e77a6a569011530d6442d91d20d011d2f01424d (diff)
downloadplan9port-4a8c0c75ffd40d08837d6937e1e995c68ceb276e.tar.gz
plan9port-4a8c0c75ffd40d08837d6937e1e995c68ceb276e.tar.bz2
plan9port-4a8c0c75ffd40d08837d6937e1e995c68ceb276e.zip
venti: fix venti graph on 64-bit
A pixel is 32 bits wide in RGBA, regardless of system's word size. Change-Id: Iea36a8dafdec9ce8d593f944ef5ed1ea08e11d25 Reviewed-on: https://plan9port-review.googlesource.com/2980 Reviewed-by: David du Colombier <0intro@gmail.com>
Diffstat (limited to 'src/cmd/venti')
-rw-r--r--src/cmd/venti/srv/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/png.c b/src/cmd/venti/srv/png.c
index ca456415..8805ada4 100644
--- a/src/cmd/venti/srv/png.c
+++ b/src/cmd/venti/srv/png.c
@@ -212,7 +212,7 @@ writepng(Hio *io, Memimage *m)
/* image data */
zr.dx = Dx(m->r);
zr.dy = Dy(m->r);
- zr.width = rgb->width * sizeof(ulong);
+ zr.width = rgb->width * sizeof(u32int);
zr.data = rgb->data->bdata;
zr.x = 0;
zr.y = 0;