summaryrefslogtreecommitdiffstats
path: root/vncviewer/cocoa.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-04-28 11:37:12 +0200
committerPierre Ossman <ossman@cendio.se>2017-04-28 12:28:05 +0200
commit1669a2d5a15aa39313cb74eff4f62dfe14d136cd (patch)
treec8a61f869f3b94e74ef4d91980d91543b9776784 /vncviewer/cocoa.h
parent3b347313f1880c0744fd7aa29f45ea010dcfcf42 (diff)
downloadtigervnc-1669a2d5a15aa39313cb74eff4f62dfe14d136cd.tar.gz
tigervnc-1669a2d5a15aa39313cb74eff4f62dfe14d136cd.zip
Use correct color space for current monitor
We won't always be on the primary monitor, so check which color space we're actually using right now. For offscreen stuff we assume a standard sRGB color space.
Diffstat (limited to 'vncviewer/cocoa.h')
-rw-r--r--vncviewer/cocoa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vncviewer/cocoa.h b/vncviewer/cocoa.h
index e9101f34..0c3ac82f 100644
--- a/vncviewer/cocoa.h
+++ b/vncviewer/cocoa.h
@@ -22,6 +22,10 @@
int cocoa_capture_display(Fl_Window *win, bool all_displays);
void cocoa_release_display(Fl_Window *win);
+typedef struct CGColorSpace *CGColorSpaceRef;
+
+CGColorSpaceRef cocoa_win_color_space(Fl_Window *win);
+
int cocoa_is_keyboard_event(const void *event);
int cocoa_is_key_press(const void *event);