diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-17 23:24:32 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-04-17 23:24:32 +0000 |
commit | 01183b26f9eb3ddeec02bf6481b49a7637897145 (patch) | |
tree | 008be39b6b1273238cddb226c09fb090a4eff399 /sys/dev | |
parent | f209e65ed696f072239337fc770722f4379dc95c (diff) |
During a mouse motion event, inverse the new mouse position first, then the
old one, instead of the other way around. This makes the motion look much
more fluid on my laptop LCD.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 80055c0a71f..e4c3bf5e31e 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.23 2001/04/17 04:30:51 aaron Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.24 2001/04/17 23:24:31 aaron Exp $ */ /* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */ /* @@ -2125,16 +2125,15 @@ mouse_moverel(char dx, char dy) MOUSE = XY_TO_POS(mouse_col, mouse_row); /* if we have moved */ if (old_mouse != MOUSE) { - /* hide the previous cursor, if not in a selection */ - if (IS_MOUSE_VISIBLE(sc->sc_focus) - && (!IS_SEL_IN_PROGRESS(sc->sc_focus))) - inverse_char(old_mouse); if (IS_SEL_IN_PROGRESS(sc->sc_focus)) { /* selection in progress */ mouse_copy_extend(); } else { inverse_char(MOUSE); - MOUSE_FLAGS |= MOUSE_VISIBLE; + if (IS_MOUSE_VISIBLE(sc->sc_focus)) + inverse_char(old_mouse); + else + MOUSE_FLAGS |= MOUSE_VISIBLE; } } } |