svn commit: r257975 - user/ed/newcons/sys/dev/vt
Aleksandr Rybalko
ray at FreeBSD.org
Mon Nov 11 12:10:26 UTC 2013
Author: ray
Date: Mon Nov 11 12:10:26 2013
New Revision: 257975
URL: http://svnweb.freebsd.org/changeset/base/257975
Log:
Use vtbuf_iscursor method instead of macro to get chars to display inverted.
Sponsored by: The FreeBSD Foundation
Modified:
user/ed/newcons/sys/dev/vt/vt.h
Modified: user/ed/newcons/sys/dev/vt/vt.h
==============================================================================
--- user/ed/newcons/sys/dev/vt/vt.h Mon Nov 11 12:08:43 2013 (r257974)
+++ user/ed/newcons/sys/dev/vt/vt.h Mon Nov 11 12:10:26 2013 (r257975)
@@ -197,8 +197,7 @@ int vtbuf_iscursor(struct vt_buf *vb, in
#define VTBUF_FIELD(vb, r, c) \
((vb)->vb_rows[((vb)->vb_curroffset + (r)) % VTBUF_MAX_HEIGHT(vb)][(c)])
#define VTBUF_ISCURSOR(vb, r, c) \
- ((vb)->vb_flags & VBF_CURSOR && \
- (vb)->vb_cursor.tp_row == (r) && (vb)->vb_cursor.tp_col == (c))
+ vtbuf_iscursor((vb), (r), (c))
#define VTBUF_DIRTYROW(mask, row) \
((mask)->vbm_row & ((uint64_t)1 << ((row) % 64)))
#define VTBUF_DIRTYCOL(mask, col) \
More information about the svn-src-user
mailing list