Browse Source

* Fixed chcul_getchar's error behaviour.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
14e83acc9d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cucul/canvas.c

+ 1
- 1
cucul/canvas.c View File

@@ -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];
}


Loading…
Cancel
Save