]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Move the mouse cursor to the center of the screen after video
authorKazutaka YOKOTA <yokota@FreeBSD.org>
Wed, 11 Feb 1998 15:02:40 +0000 (15:02 +0000)
committerKazutaka YOKOTA <yokota@FreeBSD.org>
Wed, 11 Feb 1998 15:02:40 +0000 (15:02 +0000)
commit1ee1681798472a070421da62bd6021371914236d
treed352fa251868024538a32b0b3d42ac02ff44849c
parent59f5eaf4661c11d1ff6847933e049df0b4ded950
- Move the mouse cursor to the center of the screen after video
mode switch in ioctl.
Possibly related to PR: kern/4271

- A kludge: initialize scp->xpixel and ypixel even in the text mode.
If the console enters the `unknown' graphics mode via the ioctl KDSETMODE
(KD_GRAPHICS), these fields are not set (because syscons cannot know
the correct values), but set_mouse_pos() need to refer to these field
to adjust the mouse position.

- Turn off MOUSE_VISIBLE when switching video mode by ioctl.

- another new option: SC_MOUSE_CHAR
Define the first character code of four consecutive codes to be used for
the mouse cursor.  Default codes are 0xd0 through 0xd3.  Beware that
if you decide to use any codes outside the range of 0xc0-0xdf,
the mouse cursor may not look good, because of the way VGA displays
characters in 9-dot-wide character cells.
Requested by several people.

(This patch was tested by a person who recently reported, in the -current
ML, a page fault problem in the kernel (draw_mouse_iamge()) after
X server shutdown. The patch cured his problem.)
sys/dev/syscons/syscons.c
sys/i386/isa/syscons.c
sys/isa/syscons.c