summaryrefslogtreecommitdiffstats
path: root/x11vnc/rates.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-12-29 10:05:52 -0500
committerrunge <runge@karlrunge.com>2010-12-29 10:05:52 -0500
commit596331a5c3124f080cdcbb400c188c095048ef35 (patch)
tree66eb904b6c0181703d8f3c9ec81352a970d52601 /x11vnc/rates.c
parent0c03b989407f9e5ea66b403011baaaad09fcd536 (diff)
downloadlibtdevnc-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.c7
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);