From c287bb8c541151c398c6ab2a1e175e03a5dac10d Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 7 Nov 2004 01:02:46 +0000 Subject: [PATCH] print string instead of width*height characters --- display/display.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/display/display.c b/display/display.c index b7612d6..4f1fbb2 100644 --- a/display/display.c +++ b/display/display.c @@ -47,13 +47,15 @@ int display_init(t_display *display,int outfd) { int display_draw(t_display *display) { +#ifndef USE_NCURSES int x,y; +#endif #ifdef USE_NCURSES mvprintw(0,0,"%s",display->screen); - for(y=0;ymax_y;y++) - for(x=0;xmax_x;x++) - mvaddch(y,x,*(display->screen+y*display->max_x+x)); + //for(y=0;ymax_y;y++) + // for(x=0;xmax_x;x++) + // mvaddch(y,x,*(display->screen+y*display->max_x+x)); refresh(); #else for(y=0;ymax_y;y++) { -- 2.39.2