This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 5fe3253e3a9ce41fc1f292ad31671a01a72009e2
Author: Kim Woelders <[email protected]>
AuthorDate: Thu Dec 22 19:17:54 2022 +0100

    eimage: Split EImageDefineCursor
---
 src/eimage.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/eimage.c b/src/eimage.c
index 6988c622..1299a8bd 100644
--- a/src/eimage.c
+++ b/src/eimage.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2021 Kim Woelders
+ * Copyright (C) 2004-2022 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -725,10 +725,9 @@ PmapMaskFree(PmapMask * pmm)
 
 #if USE_XRENDER
 
-EX_Cursor
-EImageDefineCursor(EImage * im, int xh, int yh)
+static              EX_Picture
+EPictureFromImage(EImage * im)
 {
-   EX_Cursor           curs;
    int                 w, h;
    EX_Pixmap           pmap;
    EX_Picture          pict;
@@ -740,7 +739,19 @@ EImageDefineCursor(EImage * im, int xh, int yh)
    EImageRenderOnDrawableARGB(im, pmap, w, h);
    EFreePixmap(pmap);
 
+   return pict;
+}
+
+EX_Cursor
+EImageDefineCursor(EImage * im, int xh, int yh)
+{
+   EX_Cursor           curs;
+   EX_Picture          pict;
+
+   pict = EPictureFromImage(im);
+
    curs = XRenderCreateCursor(disp, pict, xh, yh);
+
    XRenderFreePicture(disp, pict);
 
    return curs;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to