From 738e819e6b0e75e40f975ab55f358494bc812648 Mon Sep 17 00:00:00 2001 From: jylam Date: Fri, 23 Feb 2007 10:43:09 +0000 Subject: [PATCH] * Removed deprecated calls to cucul git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/cacatris/trunk@1755 92316355-f0b4-4df1-b90c-862c8a59935f --- src/main.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main.c b/src/main.c index 95adbfe..cd96966 100644 --- a/src/main.c +++ b/src/main.c @@ -201,19 +201,19 @@ void infos_populate(cucul_canvas_t *inf, unsigned int score, sprintf(totalline, " Lines : %02d ", total); cucul_set_color_ansi(inf, CUCUL_WHITE, CUCUL_BLUE); - cucul_putstr(inf, 0, 0, " =Cacatris= "); - cucul_putstr(inf, 0, 1, " Arrows : move "); - cucul_putstr(inf, 0, 2, " Space : pouf "); - cucul_putstr(inf, 0, 3, " __________________ "); - cucul_putstr(inf, 0, 4, " "); - cucul_putstr(inf, 0, 5, levelline); - cucul_putstr(inf, 0, 6, scoreline); - cucul_putstr(inf, 0, 7, totalline); - cucul_putstr(inf, 0, 8, " Time : XX:XX "); + cucul_put_str(inf, 0, 0, " =Cacatris= "); + cucul_put_str(inf, 0, 1, " Arrows : move "); + cucul_put_str(inf, 0, 2, " Space : pouf "); + cucul_put_str(inf, 0, 3, " __________________ "); + cucul_put_str(inf, 0, 4, " "); + cucul_put_str(inf, 0, 5, levelline); + cucul_put_str(inf, 0, 6, scoreline); + cucul_put_str(inf, 0, 7, totalline); + cucul_put_str(inf, 0, 8, " Time : XX:XX "); for(i = 8; i < cucul_get_canvas_height(inf); i++) { - cucul_putstr(inf, 0, i," "); + cucul_put_str(inf, 0, i," "); } } @@ -234,7 +234,7 @@ void playfield_draw(cucul_canvas_t *canvas) unsigned int c = playfield[oxi+oyi*FIELD_WIDTH]; cucul_set_color_ansi(canvas, CUCUL_BLACK, c ? blocks_palette[c-1] : CUCUL_DARKGRAY); - cucul_putchar(canvas, x, y, ' '); + cucul_put_char(canvas, x, y, ' '); ox+=incx; } ox = 0;