summaryrefslogtreecommitdiff
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-12-10 17:56:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-12-10 17:56:00 +0000
commitf06ce1ba71f79ac6aaae2240e5ade57caf195f23 (patch)
tree89bf030268269bb6e81dfe2ff8464c4162714cd6 /src/egl/drivers
parent98d9bb66a4b5123f7d6d5cbd7b9d92ce29665d5a (diff)
Rename eglDRIShowSurfaceMESA.
s/_eglAddMode/_eglAddNewMode/
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri/egldri.c17
-rw-r--r--src/egl/drivers/dri/egldri.h2
2 files changed, 10 insertions, 9 deletions
diff --git a/src/egl/drivers/dri/egldri.c b/src/egl/drivers/dri/egldri.c
index d9dc29cd8d..504fa9f43d 100644
--- a/src/egl/drivers/dri/egldri.c
+++ b/src/egl/drivers/dri/egldri.c
@@ -347,8 +347,9 @@ _eglDRILoadColormap(driScreen *scrn)
* Called via eglShowSurfaceMESA().
*/
EGLBoolean
-_eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
- EGLSurface surface, EGLModeMESA m)
+_eglDRIShowScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy,
+ EGLScreenMESA screen,
+ EGLSurface surface, EGLModeMESA m)
{
driDisplay *display = Lookup_driDisplay(dpy);
driScreen *scrn = Lookup_driScreen(dpy, screen);
@@ -358,12 +359,12 @@ _eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
char fname[NAME_MAX], buffer[1000];
int temp;
- _eglLog(_EGL_DEBUG, "Enter _eglDRIShowSurface");
+ _eglLog(_EGL_DEBUG, "Enter _eglDRIShowScreenSurface");
/* This will check that surface, screen, and mode are valid.
* Also, it checks that the surface is large enough for the mode, etc.
*/
- if (!_eglShowSurfaceMESA(drv, dpy, screen, surface, m))
+ if (!_eglShowScreenSurfaceMESA(drv, dpy, screen, surface, m))
return EGL_FALSE;
assert(surface == EGL_NO_SURFACE || surf);
@@ -459,7 +460,7 @@ _eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
case 3:
case 4: temp = (display->virtualWidth + 15) & ~15; break;
default:
- _eglLog(_EGL_WARNING, "Bad display->bpp = %d in _eglDRIShowSurface");
+ _eglLog(_EGL_WARNING, "Bad display->bpp = %d in _eglDRIShowScreenSurface");
}
display->virtualWidth = temp;
@@ -469,7 +470,7 @@ _eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
if (surf->Base.Width < display->virtualWidth ||
surf->Base.Height < display->virtualHeight) {
/* this case _should_ have been caught at the top of this function */
- _eglLog(_EGL_WARNING, "too small of surface in _eglDRIShowSurfaceMESA "
+ _eglLog(_EGL_WARNING, "too small of surface in _eglDRIShowScreenSurfaceMESA "
"%d x %d < %d x %d",
surf->Base.Width,
surf->Base.Height,
@@ -1043,7 +1044,7 @@ _eglDRICreateScreens(driDisplay *dpy)
char c;
path[ strlen( path ) - 1 ] = '\0'; /* strip off \n from sysfs */
sscanf( path, "%c:%ux%u-%u", &c, &x, &y, &r );
- _eglAddMode( &s->Base, x, y, r * 1000, path );
+ _eglAddNewMode( &s->Base, x, y, r * 1000, path );
}
fclose( file );
@@ -1113,7 +1114,7 @@ _eglDRIInitDriverFallbacks(_EGLDriver *drv)
drv->API.DestroySurface = _eglDRIDestroySurface;
drv->API.DestroyContext = _eglDRIDestroyContext;
drv->API.CreateScreenSurfaceMESA = _eglDRICreateScreenSurfaceMESA;
- drv->API.ShowSurfaceMESA = _eglDRIShowSurfaceMESA;
+ drv->API.ShowScreenSurfaceMESA = _eglDRIShowScreenSurfaceMESA;
drv->API.SwapBuffers = _eglDRISwapBuffers;
/* enable supported extensions */
diff --git a/src/egl/drivers/dri/egldri.h b/src/egl/drivers/dri/egldri.h
index 5881196043..54ccfeffc1 100644
--- a/src/egl/drivers/dri/egldri.h
+++ b/src/egl/drivers/dri/egldri.h
@@ -104,7 +104,7 @@ Lookup_driSurface(EGLSurface surf)
}
extern void _eglDRIInitDriverFallbacks(_EGLDriver *drv);
-extern EGLBoolean _eglDRIShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, EGLSurface surface, EGLModeMESA m);
+extern EGLBoolean _eglDRIShowScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, EGLSurface surface, EGLModeMESA m);
extern EGLBoolean _eglDRIInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor);
extern EGLBoolean _eglDRIGetDisplayInfo(driDisplay *dpy);
extern EGLBoolean _eglDRICreateDisplay(driDisplay *dpy, __DRIframebuffer *framebuffer);