Skip to content

Commit

Permalink
[WRAPPER] Added 1 wrapped function to libX11 (for #1204 and #1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 20, 2024
1 parent 04d2f90 commit ca9e43d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5006,6 +5006,7 @@ wrappedlibx11:
- iFp:
- XDestroyImage
- XInitImage
- _XInitImageFuncPtrs
- pFp:
- XOpenDisplay
- XSetErrorHandler
Expand Down
1 change: 1 addition & 0 deletions src/wrapped/generated/wrappedlibx11types.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ typedef void* (*pFppiiuuuipii_t)(void*, void*, int32_t, int32_t, uint32_t, uint3
#define SUPER() ADDED_FUNCTIONS() \
GO(XDestroyImage, iFp_t) \
GO(XInitImage, iFp_t) \
GO(_XInitImageFuncPtrs, iFp_t) \
GO(XOpenDisplay, pFp_t) \
GO(XSetErrorHandler, pFp_t) \
GO(XSetIOErrorHandler, pFp_t) \
Expand Down
6 changes: 6 additions & 0 deletions src/wrapped/wrappedlibx11.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,12 @@ EXPORT void* my_XGetImage(x64emu_t* emu, void* disp, void* drawable, int32_t x,
return img;
}

EXPORT void my__XInitImageFuncPtrs(x64emu_t* emu, XImage* img)
{
my->_XInitImageFuncPtrs(img);
BridgeImageFunc(emu, img);
}

EXPORT int32_t my_XPutImage(x64emu_t* emu, void* disp, void* drawable, void* gc, void* image
, int32_t src_x, int32_t src_y, int32_t dst_x, int32_t dst_y
, uint32_t w, uint32_t h)
Expand Down
2 changes: 1 addition & 1 deletion src/wrapped/wrappedlibx11_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ DATAB(_XInitDisplayLock_fn, sizeof(void*))
//GO(_XInitDynamicOM,
GO(XInitExtension, pFpp)
GOM(XInitImage, iFEp)
//GO(_XInitImageFuncPtrs,
GOM(_XInitImageFuncPtrs, iFEp)
//GO(_XInitKeysymDB,
GO(XInitThreads, iFv)
GO(XInsertModifiermapEntry, pFpCi)
Expand Down

0 comments on commit ca9e43d

Please sign in to comment.