]> hackdaworld.org Git - my-code/api.git/commitdiff
print string instead of width*height characters
authorhackbard <hackbard>
Sun, 7 Nov 2004 01:02:46 +0000 (01:02 +0000)
committerhackbard <hackbard>
Sun, 7 Nov 2004 01:02:46 +0000 (01:02 +0000)
display/display.c

index b7612d698374fa46025023dc6da53311a0fc4de5..4f1fbb2fae822d6754d89d978d51220ea1c61056 100644 (file)
@@ -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;y<display->max_y;y++)
-    for(x=0;x<display->max_x;x++)
-      mvaddch(y,x,*(display->screen+y*display->max_x+x));
+  //for(y=0;y<display->max_y;y++)
+  //  for(x=0;x<display->max_x;x++)
+  //    mvaddch(y,x,*(display->screen+y*display->max_x+x));
   refresh();
 #else
   for(y=0;y<display->max_y;y++) {