mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 00:30:04 +01:00
XQuartz: Cleaned up some casting to get rid of compiler warnings
This commit is contained in:
parent
bc50d41f9d
commit
6f1c85b965
1 changed files with 14 additions and 17 deletions
|
|
@ -335,10 +335,7 @@ static void DarwinChangePointerControl(
|
||||||
* DarwinMouseProc
|
* DarwinMouseProc
|
||||||
* Handle the initialization, etc. of a mouse
|
* Handle the initialization, etc. of a mouse
|
||||||
*/
|
*/
|
||||||
static int DarwinMouseProc(
|
static int DarwinMouseProc(DeviceIntPtr pPointer, int what) {
|
||||||
DeviceIntPtr pPointer,
|
|
||||||
int what )
|
|
||||||
{
|
|
||||||
CARD8 map[8] = {0, 1, 2, 3, 4, 5, 6, 7};
|
CARD8 map[8] = {0, 1, 2, 3, 4, 5, 6, 7};
|
||||||
|
|
||||||
switch (what) {
|
switch (what) {
|
||||||
|
|
@ -351,7 +348,7 @@ static int DarwinMouseProc(
|
||||||
GetMotionHistory,
|
GetMotionHistory,
|
||||||
(PtrCtrlProcPtr)NoopDDA,
|
(PtrCtrlProcPtr)NoopDDA,
|
||||||
GetMotionHistorySize(), 7);
|
GetMotionHistorySize(), 7);
|
||||||
InitProximityClassDeviceStruct( (DevicePtr)pPointer);
|
InitProximityClassDeviceStruct(pPointer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEVICE_ON:
|
case DEVICE_ON:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue