summaryrefslogtreecommitdiff
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-28 12:56:36 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-28 12:56:36 -0600
commit0c8908c411c434eda318b41b4f2a370a1e794831 (patch)
treed8a1fd0e24383fb3f5e279f33da4c5f8b4c271c5 /src/egl/drivers
parente94d383b9ba7964da9fefac2a55e10c00ee72392 (diff)
egl: added args string to _eglMain()
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/demo/demo.c2
-rw-r--r--src/egl/drivers/dri/egldri.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/demo/demo.c b/src/egl/drivers/demo/demo.c
index 1033f1b4ed..6b8b71d16b 100644
--- a/src/egl/drivers/demo/demo.c
+++ b/src/egl/drivers/demo/demo.c
@@ -286,7 +286,7 @@ demoMakeCurrent(_EGLDriver *drv, EGLDisplay dpy, EGLSurface draw, EGLSurface rea
* plug in API functions.
*/
_EGLDriver *
-_eglMain(_EGLDisplay *dpy)
+_eglMain(_EGLDisplay *dpy, const char *args)
{
DemoDriver *demo;
diff --git a/src/egl/drivers/dri/egldri.c b/src/egl/drivers/dri/egldri.c
index f00625a059..677073fb3a 100644
--- a/src/egl/drivers/dri/egldri.c
+++ b/src/egl/drivers/dri/egldri.c
@@ -79,11 +79,11 @@ driver_name_from_card_number(int card, char *driverName, int maxDriverName)
* This function, in turn, loads a specific DRI driver (ex: r200_dri.so).
*/
_EGLDriver *
-_eglMain(_EGLDisplay *dpy)
+_eglMain(_EGLDisplay *dpy, const char *args)
{
#if 1
const char *displayString = (const char *) dpy->NativeDisplay;
- const int card = atoi(displayString + 1);
+ const int card = atoi(args);
_EGLDriver *driver = NULL;
char driverName[1000];