eglx: Rename EGLNative{Window,Display}Type back to Native{Window,Display}Type
authorNeil Roberts <neil@linux.intel.com>
Tue, 18 May 2010 16:25:25 +0000 (17:25 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 18 May 2010 16:25:25 +0000 (17:25 +0100)
Commit e2a990d renamed these types to new names from EGL 1.3. However
it still works to use the old names under EGL 1.3 so let's just use
those to keep compatibility.

clutter/eglx/clutter-backend-egl.c
clutter/eglx/clutter-stage-egl.c

index 05c6e26..216f312 100644 (file)
@@ -32,7 +32,7 @@ clutter_backend_egl_post_parse (ClutterBackend  *backend,
       EGLBoolean status;
 
       backend_egl->edpy =
-        eglGetDisplay ((EGLNativeDisplayType) backend_x11->xdpy);
+        eglGetDisplay ((NativeDisplayType) backend_x11->xdpy);
 
       status = eglInitialize (backend_egl->edpy,
                              &backend_egl->egl_version_major,
@@ -185,7 +185,7 @@ retry:
   backend_egl->dummy_surface =
     eglCreateWindowSurface (edpy,
                             backend_egl->egl_config,
-                            (EGLNativeWindowType) backend_egl->dummy_xwin,
+                            (NativeWindowType) backend_egl->dummy_xwin,
                             NULL);
 
   if (backend_egl->dummy_surface == EGL_NO_SURFACE)
index 667e6be..ca20fc3 100644 (file)
@@ -140,7 +140,7 @@ clutter_stage_egl_realize (ClutterStageWindow *stage_window)
       stage_egl->egl_surface =
         eglCreateWindowSurface (edpy,
                                 backend_egl->egl_config,
-                                (EGLNativeWindowType) stage_x11->xwin,
+                                (NativeWindowType) stage_x11->xwin,
                                 NULL);
     }