Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2014 15:00:21 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270275 - head/sys/dev/vt
Message-ID:  <201408211500.s7LF0LYB013933@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Thu Aug 21 15:00:21 2014
New Revision: 270275
URL: http://svnweb.freebsd.org/changeset/base/270275

Log:
  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

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Thu Aug 21 14:56:57 2014	(r270274)
+++ head/sys/dev/vt/vt_core.c	Thu Aug 21 15:00:21 2014	(r270275)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408211500.s7LF0LYB013933>