From: hackbard Date: Sun, 7 Nov 2004 01:02:46 +0000 (+0000) Subject: print string instead of width*height characters X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=commitdiff_plain;h=c287bb8c541151c398c6ab2a1e175e03a5dac10d print string instead of width*height characters --- 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++) {