mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
xnest: wrap the xnest cursor sprite funcs around the mi funcs.
Modelled after the xfree86 code. Call miDCInitialize to init the SW rendering engine, then take the pointers, store it in a xnest-local variable, and put the xnest-specific sprite funcs in place. In the xnest sprite funcs, call through to the mi sprite funcs after doing xnest-specific stuff.
This commit is contained in:
parent
ea6a02c048
commit
e083b5a075
3 changed files with 47 additions and 4 deletions
|
|
@ -15,6 +15,15 @@ is" without express or implied warranty.
|
|||
#ifndef XNESTCURSOR_H
|
||||
#define XNESTCURSOR_H
|
||||
|
||||
#include "mipointrst.h"
|
||||
|
||||
typedef struct {
|
||||
miPointerSpriteFuncPtr spriteFuncs;
|
||||
} xnestCursorFuncRec, *xnestCursorFuncPtr;
|
||||
|
||||
extern DevPrivateKey xnestCursorScreenKey;
|
||||
extern xnestCursorFuncRec xnestCursorFuncs;
|
||||
|
||||
typedef struct {
|
||||
Cursor cursor;
|
||||
} xnestPrivCursor;
|
||||
|
|
@ -44,5 +53,6 @@ void xnestSetCursor (DeviceIntPtr pDev,
|
|||
void xnestMoveCursor (DeviceIntPtr pDev,
|
||||
ScreenPtr pScreen,
|
||||
int x, int y);
|
||||
|
||||
Bool xnestDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen);
|
||||
void xnestDeviceCursorCleanup(DeviceIntPtr pDev, ScreenPtr pScreen);
|
||||
#endif /* XNESTCURSOR_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue