mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
Fix most remaining deprecated resource lookups.
Callsites updated to use dixLookupResourceBy{Type,Class}.
TODO: Audit access modes to make sure they reflect the usage.
This commit is contained in:
parent
1abe0ee3da
commit
57aff88c7d
50 changed files with 1017 additions and 1037 deletions
|
|
@ -545,8 +545,9 @@ CreateRootCursor(char *unused1, unsigned int unused2)
|
|||
if (err != Success)
|
||||
return NullCursor;
|
||||
|
||||
cursorfont = (FontPtr)LookupIDByType(fontID, RT_FONT);
|
||||
if (!cursorfont)
|
||||
err = dixLookupResourceByType((pointer *)&cursorfont, fontID, RT_FONT,
|
||||
serverClient, DixReadAccess);
|
||||
if (err != Success)
|
||||
return NullCursor;
|
||||
if (AllocGlyphCursor(fontID, 0, fontID, 1, 0, 0, 0, ~0, ~0, ~0,
|
||||
&curs, serverClient, (XID)0) != Success)
|
||||
|
|
|
|||
Loading…
Reference in a new issue