diff options
author | runge <runge@karlrunge.com> | 2010-12-29 10:05:52 -0500 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-12-29 10:05:52 -0500 |
commit | 596331a5c3124f080cdcbb400c188c095048ef35 (patch) | |
tree | 66eb904b6c0181703d8f3c9ec81352a970d52601 /x11vnc/xwrappers.c | |
parent | 0c03b989407f9e5ea66b403011baaaad09fcd536 (diff) | |
download | libtdevnc-596331a5c3124f080cdcbb400c188c095048ef35.tar.gz libtdevnc-596331a5c3124f080cdcbb400c188c095048ef35.zip |
x11vnc: Use opengl to read screen on macosx. non-deprecated macosx interfaces for input injection.
Diffstat (limited to 'x11vnc/xwrappers.c')
-rw-r--r-- | x11vnc/xwrappers.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11vnc/xwrappers.c b/x11vnc/xwrappers.c index bb73565..e7158cf 100644 --- a/x11vnc/xwrappers.c +++ b/x11vnc/xwrappers.c @@ -681,12 +681,23 @@ static void copy_raw_fb_24_to_32(XImage *dest, int x, int y, unsigned int w, } } +#ifdef MACOSX +void macosx_copy_opengl(char *, int, int, unsigned int, unsigned int); +#endif + void copy_raw_fb(XImage *dest, int x, int y, unsigned int w, unsigned int h) { char *src, *dst; unsigned int line; int pixelsize = bpp/8; static int db = -1; +#ifdef MACOSX + if (macosx_console && macosx_read_opengl) { + macosx_copy_opengl(dest->data, x, y, w, h); + return; + } +#endif + if (xform24to32) { copy_raw_fb_24_to_32(dest, x, y, w, h); return; |