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>
This commit is contained in:
Michael Stroucken 2017-07-21 19:33:55 -04:00 committed by David du Colombier
parent 7e77a6a569
commit 4a8c0c75ff
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,7 @@ Marius Eriksen <marius.eriksen@gmail.com>
Martin Neubauer <m.ne@gmx.net> Martin Neubauer <m.ne@gmx.net>
Mathieu Lonjaret <lejatorn@gmail.com> Mathieu Lonjaret <lejatorn@gmail.com>
Mathieu Lonjaret <mathieu.lonjaret@gmail.com> Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
Michael Stroucken <mxs@cmu.edu>
Michael Teichgräber <mt4swm@googlemail.com> Michael Teichgräber <mt4swm@googlemail.com>
Michael Teichgräber <mt@ib.wmipf.de> Michael Teichgräber <mt@ib.wmipf.de>
Nathaniel W Filardo <nwf@cs.jhu.edu> <nwfilardo@gmail.com> Nathaniel W Filardo <nwf@cs.jhu.edu> <nwfilardo@gmail.com>

View file

@ -212,7 +212,7 @@ writepng(Hio *io, Memimage *m)
/* image data */ /* image data */
zr.dx = Dx(m->r); zr.dx = Dx(m->r);
zr.dy = Dy(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.data = rgb->data->bdata;
zr.x = 0; zr.x = 0;
zr.y = 0; zr.y = 0;