deepstone
diff src/scantmpl.h @ 10:059bb38506b3
fixed stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Nov 2011 01:37:04 +0200 |
parents | bce78aaafc68 |
children | 1e9f0b3616fa |
line diff
1.1 --- a/src/scantmpl.h Sat Nov 26 03:59:48 2011 +0200 1.2 +++ b/src/scantmpl.h Mon Nov 28 01:37:04 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