projects
/
my-code
/
api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c56d271
)
print string instead of width*height characters
author
hackbard
<hackbard>
Sun, 7 Nov 2004 01:02:46 +0000
(
01:02
+0000)
committer
hackbard
<hackbard>
Sun, 7 Nov 2004 01:02:46 +0000
(
01:02
+0000)
display/display.c
patch
|
blob
|
history
diff --git
a/display/display.c
b/display/display.c
index
b7612d6
..
4f1fbb2
100644
(file)
--- 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) {
int display_draw(t_display *display) {
+#ifndef USE_NCURSES
int x,y;
int x,y;
+#endif
#ifdef USE_NCURSES
mvprintw(0,0,"%s",display->screen);
#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++) {
refresh();
#else
for(y=0;y<display->max_y;y++) {