Fix EImageDefineCursor() for window mode
Use RROOT, not VROOT. EImageDefineCursor() is used by the restart cursor code, and in window mode VROOT is destroyed during restart. Also correct comment.
This commit is contained in:
parent
4f9913301e
commit
13c4b29a98
|
@ -736,7 +736,7 @@ EImageDefineCursor(EImage * im, int xh, int yh)
|
|||
|
||||
EImageGetSize(im, &w, &h);
|
||||
|
||||
pict = EPictureCreateBuffer(VROOT, w, h, 1, &pmap);
|
||||
pict = EPictureCreateBuffer(RROOT, w, h, 1, &pmap);
|
||||
|
||||
EImageRenderOnDrawableARGB(im, pmap, w, h);
|
||||
EFreePixmap(pmap);
|
||||
|
@ -747,4 +747,4 @@ EImageDefineCursor(EImage * im, int xh, int yh)
|
|||
return curs;
|
||||
}
|
||||
|
||||
#endif /* USE_COMPOSITE */
|
||||
#endif /* USE_XRENDER */
|
||||
|
|
Loading…
Reference in New Issue