dix: set dst->mapWidth when allocating a new map.
This commit is contained in:
parent
ff3adf3e56
commit
fbf4b5f16a
|
@ -1046,6 +1046,7 @@ SetKeySymsMap(KeySymsPtr dst, KeySymsPtr src)
|
||||||
if (!map)
|
if (!map)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
dst->map = map;
|
dst->map = map;
|
||||||
|
dst->mapWidth = src->mapWidth;
|
||||||
}
|
}
|
||||||
memmove((char *)&dst->map[rowDif * dst->mapWidth],
|
memmove((char *)&dst->map[rowDif * dst->mapWidth],
|
||||||
(char *)src->map,
|
(char *)src->map,
|
||||||
|
|
Loading…
Reference in New Issue