From 7e6dfdd6e5247648a84876a229f3dabde79aabc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 21 Aug 2014 15:00:21 +0000 Subject: [PATCH] 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. MFC after: 1 week --- sys/dev/vt/vt_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 6ce84e2b00f..3bda6374fce 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -850,10 +850,16 @@ vt_flush(struct vt_device *vd) * to font size possibly inconsistent across * windows, this may not be sufficient. This * causes part of the cursor to not be erased. + * + * FIXME: The vt_buf lock is acquired twice in a + * row. */ vtbuf_mouse_cursor_position(&vw->vw_buf, vd->vd_moldx / vf->vf_width, vd->vd_moldy / vf->vf_height); + vtbuf_mouse_cursor_position(&vw->vw_buf, + vd->vd_mx / vf->vf_width, + vd->vd_my / vf->vf_height); /* * Save point of last mouse cursor to erase it