minor tweaks
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 16 May 2005 00:31:29 +0000 (00:31 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 16 May 2005 00:31:29 +0000 (00:31 +0000)
src/egl/main/eglmode.c
src/egl/main/eglmode.h
src/egl/main/eglscreen.c
src/egl/main/eglscreen.h

index 26ea6bd..f2b17a6 100644 (file)
@@ -56,7 +56,7 @@ _eglLookupMode(EGLDisplay dpy, EGLModeMESA mode)
  */
 _EGLMode *
 _eglAddMode(_EGLScreen *screen, EGLint width, EGLint height,
-            EGLint refreshRate, char *name)
+            EGLint refreshRate, const char *name)
 {
    EGLint n;
    _EGLMode *newModes;
index 71adef4..ed2f022 100644 (file)
@@ -13,7 +13,7 @@ struct _egl_mode
    EGLint Width, Height;   /* size in pixels */
    EGLint RefreshRate;     /* rate * 1000.0 */
    EGLBoolean Stereo;
-   char *Name;
+   const char *Name;
 
    /* Other possible attributes */
    /* interlaced */
@@ -27,7 +27,7 @@ _eglLookupMode(EGLDisplay dpy, EGLModeMESA mode);
 
 extern _EGLMode *
 _eglAddMode(_EGLScreen *screen, EGLint width, EGLint height,
-            EGLint refreshRate, char *name);
+            EGLint refreshRate, const char *name);
 
 
 extern EGLBoolean
index 406ad1b..9669a22 100644 (file)
@@ -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);
 
index 1dff069..afc52a5 100644 (file)
@@ -36,8 +36,8 @@ _eglGetScreensMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA *screens, EGLi
 
 
 extern 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);
+
                             
 extern EGLSurface
 _eglCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);