summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-27 13:45:41 -0600
committerBrian Paul <[email protected]>2008-05-27 13:45:41 -0600
commit1ed1027e886980b9b0f48fa6bfcf3d6e209c7787 (patch)
tree5f0128ab153890b56604f8d6d1746ab12a8aa659 /src/egl/main/egldisplay.c
parent3e4128963d4e1a27ef29658a3aa260f492091628 (diff)
assorted changes to compile with new EGL 1.4 headers (untested)
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r--src/egl/main/egldisplay.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 074a85bf26b..59d0bd3dc3e 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -26,10 +26,11 @@ _eglNewDisplay(NativeDisplayType displayName)
{
_EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay));
if (dpy) {
- dpy->Handle = _eglHashGenKey(_eglGlobal.Displays);
- _eglHashInsert(_eglGlobal.Displays, dpy->Handle, dpy);
+ EGLuint key = _eglHashGenKey(_eglGlobal.Displays);
+ dpy->Handle = (EGLDisplay) key;
+ _eglHashInsert(_eglGlobal.Displays, key, dpy);
if (displayName)
- dpy->Name = my_strdup(displayName);
+ dpy->Name = my_strdup((char *) displayName);
else
dpy->Name = NULL;
dpy->Driver = NULL; /* this gets set later */
@@ -45,7 +46,8 @@ _eglNewDisplay(NativeDisplayType displayName)
_EGLDisplay *
_eglLookupDisplay(EGLDisplay dpy)
{
- _EGLDisplay *d = (_EGLDisplay *) _eglHashLookup(_eglGlobal.Displays, dpy);
+ EGLuint key = (EGLuint) dpy;
+ _EGLDisplay *d = (_EGLDisplay *) _eglHashLookup(_eglGlobal.Displays, key);
return d;
}