minor tweaks

This commit is contained in:
Brian Paul 2005-05-16 00:31:29 +00:00
parent efeea95dcc
commit 9b134f641c
4 changed files with 13 additions and 9 deletions

View 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;

View 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

View 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);

View 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);