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:
Kim Woelders 2021-07-20 17:18:15 +02:00
parent 4f9913301e
commit 13c4b29a98
1 changed files with 2 additions and 2 deletions

View File

@ -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 */