mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
Eliminated the redundant cursor updates that were added when moving
CURSES_REFRESH to PDC_transform_line().
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: pdcdisp.c,v 1.26 2006/07/17 21:45:16 wmcbrine Exp $");
|
||||
RCSID("$Id: pdcdisp.c,v 1.27 2006/07/21 02:58:23 wmcbrine Exp $");
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
@@ -146,4 +146,8 @@ void PDC_transform_line(int lineno)
|
||||
curscr->_lastch[lineno] = _NO_CHANGE;
|
||||
|
||||
XCursesInstructAndWait(CURSES_REFRESH);
|
||||
|
||||
if (lineno == SP->cursrow)
|
||||
XCurses_display_cursor(SP->cursrow, SP->curscol,
|
||||
SP->cursrow, SP->curscol, 1);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
RCSID("$Id: x11.c,v 1.55 2006/07/17 22:08:20 wmcbrine Exp $");
|
||||
RCSID("$Id: x11.c,v 1.56 2006/07/21 02:58:23 wmcbrine Exp $");
|
||||
|
||||
int visible_cursor = 0;
|
||||
int windowEntered = 1;
|
||||
@@ -129,9 +129,6 @@ int XCursesRefreshScreen(void)
|
||||
if (mouse_selection)
|
||||
SelectionOff();
|
||||
|
||||
visible_cursor = 1;
|
||||
XCursesDisplayCursor(SP->cursrow, SP->curscol,
|
||||
SP->cursrow, SP->curscol);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user