summaryrefslogtreecommitdiff
path: root/src/egl/main/eglscreen.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-05-16 00:31:29 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-05-16 00:31:29 +0000
commit9b134f641c3a2ee8d12e6b2a205e9fe6ff2cf401 (patch)
tree96524d02408ecd811e59c4f2533fb9ba170a093b /src/egl/main/eglscreen.c
parentefeea95dcc9094528dcce59abc475046835ecd6a (diff)
minor tweaks
Diffstat (limited to 'src/egl/main/eglscreen.c')
-rw-r--r--src/egl/main/eglscreen.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/egl/main/eglscreen.c b/src/egl/main/eglscreen.c
index 406ad1b4fd..9669a22c07 100644
--- a/src/egl/main/eglscreen.c
+++ b/src/egl/main/eglscreen.c
@@ -24,7 +24,7 @@
/**
- * Return a new _EGLScreen object.
+ * Initialize an _EGLScreen object to default values.
*/
void
_eglInitScreen(_EGLScreen *screen)
@@ -105,9 +105,13 @@ _eglGetScreensMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA *screens,
}
+/**
+ * Initialize the given _EGLSurface object. Assign it an EGLSurface handle.
+ * Return the EGLSurface handle or EGL_BAD_SURFACE if error.
+ */
EGLSurface
-_eglInitScreenSurfaceMESA(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy, EGLConfig config,
- const EGLint *attrib_list)
+_eglInitScreenSurface(_EGLSurface *surf, _EGLDriver *drv, EGLDisplay dpy,
+ EGLConfig config, const EGLint *attrib_list)
{
EGLint width = 0, height = 0;
EGLint i;
@@ -157,7 +161,7 @@ _eglCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config,
EGLSurface surface;
surf = (_EGLSurface *) malloc(sizeof(_EGLSurface));
- surface = _eglInitScreenSurfaceMESA(surf, drv, dpy, config, attrib_list);
+ surface = _eglInitScreenSurface(surf, drv, dpy, config, attrib_list);
if (surface == EGL_NO_SURFACE)
free(surf);