mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[WIN32K]
- Use the first frame of an animated cursor in case we're trying to use one. svn path=/trunk/; revision=64876
This commit is contained in:
parent
19cf379c80
commit
f696300a7a
1 changed files with 11 additions and 5 deletions
|
@ -146,14 +146,20 @@ UserSetCursor(
|
|||
{
|
||||
/* Call GDI to set the new screen cursor */
|
||||
#ifdef NEW_CURSORICON
|
||||
PCURICON_OBJECT CursorFrame = NewCursor;
|
||||
if(NewCursor->CURSORF_flags & CURSORF_ACON)
|
||||
{
|
||||
FIXME("Should animate the cursor, using only the first frame now.\n");
|
||||
CursorFrame = ((PACON)NewCursor)->aspcur[0];
|
||||
}
|
||||
GreSetPointerShape(hdcScreen,
|
||||
NewCursor->hbmAlpha ? NULL : NewCursor->hbmMask,
|
||||
NewCursor->hbmAlpha ? NewCursor->hbmAlpha : NewCursor->hbmColor,
|
||||
NewCursor->xHotspot,
|
||||
NewCursor->yHotspot,
|
||||
CursorFrame->hbmAlpha ? NULL : NewCursor->hbmMask,
|
||||
CursorFrame->hbmAlpha ? NewCursor->hbmAlpha : NewCursor->hbmColor,
|
||||
CursorFrame->xHotspot,
|
||||
CursorFrame->yHotspot,
|
||||
gpsi->ptCursor.x,
|
||||
gpsi->ptCursor.y,
|
||||
NewCursor->hbmAlpha ? SPS_ALPHA : 0);
|
||||
CursorFrame->hbmAlpha ? SPS_ALPHA : 0);
|
||||
#else
|
||||
GreSetPointerShape(hdcScreen,
|
||||
NewCursor->IconInfo.hbmMask,
|
||||
|
|
Loading…
Reference in a new issue