diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2014-08-22 15:36:57 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2014-08-22 15:36:57 +0000 |
commit | ccd5615a339bb5865ebcfc5c977ae7c9272c1e18 (patch) | |
tree | bfd8260fbb33fb8722d0346787472451891acb28 /sys/dev/vt/vt.h | |
parent | b740f63f239c8b702bea3b2db08046c19e93692f (diff) | |
download | src-ccd5615a339bb5865ebcfc5c977ae7c9272c1e18.tar.gz src-ccd5615a339bb5865ebcfc5c977ae7c9272c1e18.zip |
vt(4): The offset to center the text area is per-window now
The previous global offset, based on the last loaded font, had no
meaning for other windows. This caused a shifted text area, often partly
out-of-screen.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=270338
Diffstat (limited to 'sys/dev/vt/vt.h')
-rw-r--r-- | sys/dev/vt/vt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index 875db54ae9bd..abe48d3518a7 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -136,7 +136,6 @@ struct vt_device { vt_axis_t vd_moldx; /* (?) Mouse X as of last redraw. */ vt_axis_t vd_moldy; /* (?) Mouse Y as of last redraw. */ uint32_t vd_mstate; /* (?) Mouse state. */ - term_pos_t vd_offset; /* (?) Pixel offset. */ vt_axis_t vd_width; /* (?) Screen width. */ vt_axis_t vd_height; /* (?) Screen height. */ struct mtx vd_lock; /* Per-device lock. */ @@ -258,6 +257,7 @@ struct vt_window { struct terminal *vw_terminal; /* (c) Terminal. */ struct vt_buf vw_buf; /* (u) Screen buffer. */ struct vt_font *vw_font; /* (d) Graphical font. */ + term_pos_t vw_offset; /* (?) Pixel offset. */ unsigned int vw_number; /* (c) Window number. */ int vw_kbdmode; /* (?) Keyboard mode. */ char *vw_kbdsq; /* Escape sequence queue*/ |