From 14e83acc9df6e17615a436a9021a5e9d0288f8be Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 23 Sep 2006 01:18:49 +0000 Subject: [PATCH] * Fixed chcul_getchar's error behaviour. --- cucul/canvas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cucul/canvas.c b/cucul/canvas.c index b25c1ee..d57b69a 100644 --- a/cucul/canvas.c +++ b/cucul/canvas.c @@ -95,7 +95,7 @@ int cucul_putchar(cucul_canvas_t *cv, int x, int y, unsigned long int ch) unsigned long int cucul_getchar(cucul_canvas_t *cv, int x, int y) { if(x < 0 || x >= (int)cv->width || y < 0 || y >= (int)cv->height) - return 0; + return (unsigned char)' '; return (unsigned long int)cv->chars[x + y * cv->width]; }