the data type is now consistent with the one used in input_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18007 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -314,7 +314,7 @@ get_mouse_map(mouse_map *map)
|
|||||||
|
|
||||||
_control_input_server_(&command, &reply);
|
_control_input_server_(&command, &reply);
|
||||||
|
|
||||||
if (reply.FindData("mousemap", B_ANY_TYPE, &data, &count) != B_OK)
|
if (reply.FindData("mousemap", B_RAW_TYPE, &data, &count) != B_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
memcpy(map, data, count);
|
memcpy(map, data, count);
|
||||||
@@ -329,7 +329,7 @@ set_mouse_map(mouse_map *map)
|
|||||||
BMessage command(IS_SET_MOUSE_MAP);
|
BMessage command(IS_SET_MOUSE_MAP);
|
||||||
BMessage reply;
|
BMessage reply;
|
||||||
|
|
||||||
command.AddData("mousemap", B_ANY_TYPE, map, sizeof(mouse_map));
|
command.AddData("mousemap", B_RAW_TYPE, map, sizeof(mouse_map));
|
||||||
return _control_input_server_(&command, &reply);
|
return _control_input_server_(&command, &reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user