sgl

diff tests/simple/simple.c @ 31:124195562f7e

FUCKING AUTORELEASE POOL
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 03 Jul 2011 04:33:32 +0300
parents 25de96fb1526
children f7de32814f34
line diff
     1.1 --- a/tests/simple/simple.c	Tue Jun 28 13:52:02 2011 +0300
     1.2 +++ b/tests/simple/simple.c	Sun Jul 03 04:33:32 2011 +0300
     1.3 @@ -39,7 +39,7 @@
     1.4  
     1.5  void disp(void)
     1.6  {
     1.7 -	printf("redisplay\n");
     1.8 +	sgl_log("redisplay\n");
     1.9  
    1.10  	glClearColor(0.2, 0.2, 0.2, 1);
    1.11  	glClear(GL_COLOR_BUFFER_BIT);
    1.12 @@ -69,9 +69,9 @@
    1.13  	char *ststr = state ? "pressed" : "released";
    1.14  
    1.15  	if(key < 0xff && isprint(key)) {
    1.16 -		printf("keyboard: '%c' %s\n", (char)key, ststr);
    1.17 +		sgl_log("keyboard: '%c' %s\n", (char)key, ststr);
    1.18  	} else {
    1.19 -		printf("keyboard: %x %s\n", key, ststr);
    1.20 +		sgl_log("keyboard: %x %s\n", key, ststr);
    1.21  	}
    1.22  
    1.23  	if(key == 27) {