diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-04-09 19:31:59 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-04-09 19:31:59 +0930 |
commit | f1f8b562aaaa6ec32ab0d0697f964d92d6d536a4 (patch) | |
tree | 738183e43a1ad5d990cd7197b2aa6fa91379edc7 /mi/misprite.h | |
parent | 7cef789fa13ae53bfba6dc7b5a7928b7362b2522 (diff) |
Alloc sprite memory in devices' devPrivates, allow undisplaying cursors.
Improve memory usage by allocating the sprite's memory only to devices that
actually have a sprite and provide means to remove a device's cursor from the
screen (more hotplugging, yay!).
This commit breaks ScreenRec's ABI.
Diffstat (limited to 'mi/misprite.h')
-rw-r--r-- | mi/misprite.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mi/misprite.h b/mi/misprite.h index 96d2d7d54..72dc06fc7 100644 --- a/mi/misprite.h +++ b/mi/misprite.h @@ -89,6 +89,14 @@ typedef struct { int /*dx*/, int /*dy*/ ); + Bool (*DeviceCursorInitialize)( + DeviceIntPtr /*pDev*/, + ScreenPtr /*pScreen*/ +); + void (*DeviceCursorCleanup)( + DeviceIntPtr /*pDev*/, + ScreenPtr /*pScreen*/ +); } miSpriteCursorFuncRec, *miSpriteCursorFuncPtr; |