CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2009/05/31 11:02:20

Modified files:
        sys/dev/wscons : wsdisplay.c wsmoused.h 

Log message:
The wsmouse support code has been written for pcvt long ago, then lifted
to work with wscons. Back then, the universe was simple and there was only
one single wsdisplay device, so that code would use global variables.

Overhaul this, and make sure the various routines take the wsscreen or
wsdisplay they operate on as arguments.

This will eventually allow multiple wsmoused to run, one per wsdisplay
device.

While there, use more appropriate integer types in that code, so that
unholy big displays do not cause integer overflows in coordinates
computations. As a bonus, this makes the code smaller.

Reply via email to