summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-07-01 01:58:38 +0100
committerRobert Bragg <robert@linux.intel.com>2011-07-11 14:07:01 +0100
commit38b67e2884f44a7647dbcd9a72b79d9147d180c1 (patch)
tree626473a2bc13de4ab96e7ca3e2ff1bc3b1513b6f /examples
parentb2e735ff7f4094056765ff6adb5c74fd51d11e4a (diff)
downloadcogl-38b67e2884f44a7647dbcd9a72b79d9147d180c1.tar.gz
onscreen: make platform specific onscreen apis consistent
There were several CoglOnscreen functions named like: cogl_onscreen_<platform>_blah instead of cogl_<platform>_onscreen_blah so this patch updates those to be consistent with other platform specific apis we have in cogl. Signed-off-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/x11-foreign.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/x11-foreign.c b/examples/x11-foreign.c
index b9b29ee3..e43a2ef5 100644
--- a/examples/x11-foreign.c
+++ b/examples/x11-foreign.c
@@ -24,7 +24,7 @@ update_cogl_x11_event_mask (CoglOnscreen *onscreen,
guint32 xwin;
attrs.event_mask = event_mask | X11_FOREIGN_EVENT_MASK;
- xwin = cogl_onscreen_x11_get_window_xid (onscreen);
+ xwin = cogl_x11_onscreen_get_window_xid (onscreen);
XChangeWindowAttributes (xdpy,
(Window)xwin,
@@ -112,7 +112,7 @@ main (int argc, char **argv)
/* We want to test that Cogl can handle foreign X windows... */
- visual = cogl_onscreen_x11_get_visual_xid (onscreen);
+ visual = cogl_x11_onscreen_get_visual_xid (onscreen);
if (!visual)
{
fprintf (stderr, "Failed to query an X visual suitable for the "
@@ -144,7 +144,7 @@ main (int argc, char **argv)
XFree (xvisinfo);
- cogl_onscreen_x11_set_foreign_window_xid (onscreen, xwin,
+ cogl_x11_onscreen_set_foreign_window_xid (onscreen, xwin,
update_cogl_x11_event_mask,
xdpy);