kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=892af451f2ffa7bd43bb83b84354e79500f4a141

commit 892af451f2ffa7bd43bb83b84354e79500f4a141
Author: Kim Woelders <[email protected]>
Date:   Sat Nov 20 20:05:15 2021 +0100

    Trivial changes in __imlib_Grab...() function prototypes
---
 src/lib/x11_grab.c | 6 +++---
 src/lib/x11_grab.h | 7 ++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/lib/x11_grab.c b/src/lib/x11_grab.c
index 90d03dd..709bdbe 100644
--- a/src/lib/x11_grab.c
+++ b/src/lib/x11_grab.c
@@ -23,7 +23,7 @@ Tmp_HandleXError(Display * d, XErrorEvent * ev)
 void
 __imlib_GrabXImageToRGBA(DATA32 * data, int ox, int oy, int ow, int oh,
                          Display * d, XImage * xim, XImage * mxim, Visual * v,
-                         int depth, int x, int y, int w, int h, char grab)
+                         int depth, int x, int y, int w, int h, int grab)
 {
    int                 inx, iny;
    const DATA32       *src;
@@ -588,11 +588,11 @@ __imlib_GrabXImageToRGBA(DATA32 * data, int ox, int oy, 
int ow, int oh,
       XUngrabServer(d);
 }
 
-char
+int
 __imlib_GrabDrawableToRGBA(DATA32 * data, int ox, int oy, int ow, int oh,
                            Display * d, Drawable p, Pixmap m, Visual * v,
                            Colormap cm, int depth, int x, int y,
-                           int w, int h, char *pdomask, char grab)
+                           int w, int h, char *pdomask, int grab)
 {
    XErrorHandler       prev_erh = NULL;
    XWindowAttributes   xatt, ratt;
diff --git a/src/lib/x11_grab.h b/src/lib/x11_grab.h
index d2099d0..b37804b 100644
--- a/src/lib/x11_grab.h
+++ b/src/lib/x11_grab.h
@@ -3,16 +3,17 @@
 
 #include "common.h"
 
-char                __imlib_GrabDrawableToRGBA(DATA32 * data, int ox, int oy,
+int                 __imlib_GrabDrawableToRGBA(DATA32 * data, int ox, int oy,
                                                int ow, int oh, Display * d,
                                                Drawable p, Pixmap m, Visual * 
v,
                                                Colormap cm, int depth, int x,
                                                int y, int w, int h,
-                                               char *domask, char grab);
+                                               char *domask, int grab);
+
 void                __imlib_GrabXImageToRGBA(DATA32 * data, int ox, int oy,
                                              int ow, int oh, Display * d,
                                              XImage * xim, XImage * mxim,
                                              Visual * v, int depth, int x,
-                                             int y, int w, int h, char grab);
+                                             int y, int w, int h, int grab);
 
 #endif /* X11_GRAB_H */

-- 


Reply via email to