dos3d
diff src/scantmpl.h @ 12:c29a6e024950
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Nov 2011 05:03:22 +0200 |
parents | bce78aaafc68 |
children | 1e9f0b3616fa |
line diff
1.1 --- a/src/scantmpl.h Mon Nov 28 05:02:08 2011 +0200 1.2 +++ b/src/scantmpl.h Mon Nov 28 05:03:22 2011 +0200 1.3 @@ -233,7 +233,7 @@ 1.4 int c = cidx; 1.5 1.6 #ifdef INTERP_DEPTH 1.7 - int pix = (sline + x0 + i) - fb->pixels; 1.8 + long pix = (sline + x0 + i) - fb->pixels; 1.9 unsigned short zval = (unsigned short)(z * USHRT_MAX); 1.10 unsigned short *zptr = fb->zbuf[ZTILE(pix)] + ZTILE_OFFS(pix); 1.11