Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: xsrc/xfree/xc/programs/Xserver/hw/xfree86



Module Name:    xsrc
Committed By:   heas
Date:           Tue Jul 20 18:30:52 UTC 2004

Modified Files:
        xsrc/xfree/xc/programs/Xserver/hw/xfree86/input/mouse: mouse.c
        xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support: xf86OSmouse.h
        xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support/bsd: bsd_mouse.c

Log Message:
Add a buffer "scale" hint to MouseDevPtr type.  If set, MouseProc() uses it
as a structure size * 4 for the size of the mouse input buffer (Xisb buffer),
else the static size of 64 bytes is allocated.

On LP64, the wscons_event struct is 8 bytes larger.  If more than 2 events
were queued, wsconsReadInput() would get the first 16 bytes of the 3rd event
and thus have bogus events the next time (and until the queue was drained).

Chose this path over handling short reads in wsconsReadInput() so we could
have a buffer large enough to hold more than just 2 events.

Addresses my PR 26189
XFree PR 1438


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 \
    xsrc/xfree/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c
cvs rdiff -r1.1.1.6 -r1.2 \
    xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h
cvs rdiff -r1.7 -r1.8 \
    xsrc/xfree/xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index