deepstone

changeset 10:059bb38506b3

fixed stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Nov 2011 01:37:04 +0200
parents bce78aaafc68
children c29a6e024950
files src/scantmpl.h src/test.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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  
     2.1 --- a/src/test.c	Sat Nov 26 03:59:48 2011 +0200
     2.2 +++ b/src/test.c	Mon Nov 28 01:37:04 2011 +0200
     2.3 @@ -114,6 +114,8 @@
     2.4  	signal(SIGILL, sighandler);
     2.5  	signal(SIGABRT, sighandler);
     2.6  
     2.7 +	have_mouse();
     2.8 +
     2.9  
    2.10  	if(mgl_init(320, 200) == -1) {
    2.11  		fprintf(stderr, "mgl init failed\n");