svn commit: r346752 - head/lib/libvgl

Bruce Evans bde at FreeBSD.org
Fri Apr 26 16:14:24 UTC 2019


Author: bde
Date: Fri Apr 26 16:14:23 2019
New Revision: 346752
URL: https://svnweb.freebsd.org/changeset/base/346752

Log:
  In VGLClear(), check for the overlap of the mouse cursor in the whole
  display, not just in the unpanned top left corner.  This currently
  makes no difference since the kernel erroneously doesn't allow moving
  the cursor completely outside of the unpanned corner.

Modified:
  head/lib/libvgl/simple.c

Modified: head/lib/libvgl/simple.c
==============================================================================
--- head/lib/libvgl/simple.c	Fri Apr 26 15:43:14 2019	(r346751)
+++ head/lib/libvgl/simple.c	Fri Apr 26 16:14:23 2019	(r346752)
@@ -476,7 +476,7 @@ VGLClear(VGLBitmap *object, u_long color)
   VGLCheckSwitch();
   if (object == VGLDisplay) {
     VGLMouseFreeze();
-    mouseoverlap = VGLMouseOverlap(0, 0, object->Xsize, object->Ysize);
+    mouseoverlap = VGLMouseOverlap(0, 0, object->VXsize, object->VYsize);
     if (mouseoverlap)
       VGLMousePointerHide();
     VGLClear(&VGLVDisplay, color);


More information about the svn-src-all mailing list