diff options
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 43 |
1 files changed, 42 insertions, 1 deletions
@@ -6,6 +6,46 @@ #include "gramscii.h" #include "config.h" +/** Extern declarations **/ + +extern int WIDTH, HEIGHT; +extern lineset_t screen; /* what is visualised */ +extern lineset_t cutbuf; /* cut/paste buffer */ +extern lineset_t *undo; /* undo list */ + +extern int undo_cur;/* undo position */ +extern int undo_lst;/* last valid undo position */ + + +extern int mode;/* mode */ +extern int dir;/* line direction */ +extern int step;/* current step */ +extern int x; +extern int y; +extern char corner; +extern char modified; /* set to 1 if screen modified since last save */ + +/* line and arrow markers */ +extern int cur_hl, cur_vl, cur_corn, cur_start, cur_end; +extern char line_h; +extern char line_v; +extern char mark_st; +extern char mark_end; + +/* number of available markers for each type */ +extern int hlines_sz; +extern int vlines_sz; +extern int corners_sz; +extern int stmarks_sz; +extern int endmarks_sz; + + +extern char autoend; /* set to 1 in auto-arrow mode */ + +/* Used by draw_arrow to identify the bounding box */ +extern int a_miny; +extern int a_maxy; + /*** drawing-related functions ***/ /*** Lines and markers ***/ @@ -680,6 +720,7 @@ void redo_change(){ void get_comment(FILE *fc){ char c; redraw(); - while((c = fgetc(fc)) != EOF && c != '\n'); + while((c = fgetc(fc)) != EOF && c != '\n'); mode = MOVE; } + |