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/rates.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/rates.c')
-rw-r--r-- | x11vnc/rates.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x11vnc/rates.c b/x11vnc/rates.c index 0af5e42..ee9ca05 100644 --- a/x11vnc/rates.c +++ b/x11vnc/rates.c @@ -240,6 +240,13 @@ void initialize_speeds(void) { if (! speeds_read_rate) { int n = 0; double dt, timer; +#ifdef MACOSX + if (macosx_console && macosx_read_opengl && fullscreen) { + copy_image(fullscreen, 0, 0, 0, 0); + usleep(10 * 1000); + } +#endif + dtime0(&timer); if (fullscreen) { copy_image(fullscreen, 0, 0, 0, 0); |