tventi: fix venti graph on 64-bit - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4a8c0c75ffd40d08837d6937e1e995c68ceb276e | |
parent 7e77a6a569011530d6442d91d20d011d2f01424d | |
Author: Michael Stroucken | |
Date: Fri, 21 Jul 2017 19:33:55 -0400 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: M CONTRIBUTORS | 1 + M src/cmd/venti/srv/png.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- | |
diff --git a/CONTRIBUTORS b/CONTRIBUTORS | |
t@@ -35,6 +35,7 @@ Marius Eriksen | |
diff --git a/src/cmd/venti/srv/png.c b/src/cmd/venti/srv/png.c | |
t@@ -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; |