Skip to content
Snippets Groups Projects
Commit f4ce29ba authored by deuce's avatar deuce
Browse files

Add new hold_refresh global variable... when TRUE, the screen is not

updated immediately.
parent 5cacd068
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ static int lastmode=3;
int _wscroll=1;
int directvideo=0;
int dont_move_cursor=0;
int hold_refresh=0;
static int initialized=0;
int ciolib_movetext(int sx, int sy, int ex, int ey, int dx, int dy);
......
......@@ -202,6 +202,7 @@ extern cioapi_t cio_api;
extern int _wscroll;
extern int directvideo;
extern int dont_move_cursor;
extern int hold_refresh;
#define _conio_kbhit() kbhit()
......
......@@ -133,7 +133,8 @@ int curs_puttext(int sx, int sy, int ex, int ey, void *fillbuf)
}
textattr(orig_attr);
move(oldy, oldx);
refresh();
if(!hold_refresh)
refresh();
return(1);
}
......@@ -632,8 +633,10 @@ int _putch(unsigned char ch, BOOL refresh_now)
else
ret=addch(cha);
if(refresh_now)
refresh();
if(!hold_refresh) {
if(refresh_now)
refresh();
}
return(ret);
}
......@@ -641,7 +644,8 @@ int _putch(unsigned char ch, BOOL refresh_now)
void curs_gotoxy(int x, int y)
{
move(y-1,x-1);
refresh();
if(!hold_refresh)
refresh();
}
void call_endwin(void)
......@@ -725,7 +729,8 @@ void curs_setcursortype(int type) {
break;
}
refresh();
if(!hold_refresh)
refresh();
}
int curs_putch(int ch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment