summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-09-03 13:40:02 +0000
committeremaste <emaste@FreeBSD.org>2014-09-03 13:40:02 +0000
commita8ec7c36a31697d414a0126c83fea550ce6e0be5 (patch)
treeeda56cfa52f7137ceccd6fc49a5d120eb30f183c /bin/test
parent97f9055278bfaea0a736cacc6f58b1a794f9cb7e (diff)
downloadFreeBSD-src-a8ec7c36a31697d414a0126c83fea550ce6e0be5.zip
FreeBSD-src-a8ec7c36a31697d414a0126c83fea550ce6e0be5.tar.gz
MFC vt(4) mouse cursor improvements from dumbbell:
r270269: vt(4): Handle global and per-window mouse cursor toggle in one place Before the global flag was set/unset using the CONS_MOUSECTL ioctl, and the per-window flag through the MOUSE_SETLEVEL or MOUSE_SETMODE ioctls. Also, if the cursor is already enabled/disabled, return immediatly. This avoids to reset the cursor's position to the center of the screen. This matches syscons' behavior. While here, remove a trailing space and a redundant variable declaration. r270271: vt(4): Mark cursor old position as dirty before reading the dirty area Otherwise, the redraw is done during the next vt_flush run. r270272: vt(4): If the cursor is globally disabled, don't mark its position as dirty This avoids unnecessary redraw. In particular, during boot, where the cursor is disabled and its fake position is [0;0], this triggered a refresh of the whole screen each time vt_flush() is called. r270273: vt(4): If the cursor didn't move, don't mark its position as dirty Currently, this has no effect, because the cursor is always redrawn anyway. But this will be useful after improvements to the vd_bitbltchr_t callback API. The vt_device structure members used to store the position of the cursor as of the last redraw are renamed from vd_mdirty{x,y} to vd_mold{x,y}. The associated comment is fixed too. Also, their value is now expressed in pixels, not in character columns/row. r270275: vt(4): Mark the current cursor position as dirty Like r270273, this has no effect for now, because the cursor is always drawn. This is in preparation of future changes to vd_bitbltchr_t API. r270278: vt(4): Mark cursor position as dirty when we enable/disable it Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'bin/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud