changeset 585:6af1aa74e57c openvg

Rename to mbe_vg_win_surface_create() and matching EGL display
author Thinker K.F. Li <thinker@branda.to>
date Wed, 30 Jun 2010 09:52:22 +0800
parents 543a2a8523fb
children b42d69ab8857
files include/mb_graph_engine_openvg.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/include/mb_graph_engine_openvg.h	Wed Jun 30 09:44:17 2010 +0800
+++ b/include/mb_graph_engine_openvg.h	Wed Jun 30 09:52:22 2010 +0800
@@ -263,8 +263,8 @@
  * This function is compiled only for GLX enabled.
  */
 static mbe_surface_t *
-mbe_xlib_surface_create(Display *display, Drawable drawable,
-			Visual *visual, int width, int height) {
+mbe_vg_win_surface_create(Display *display, Drawable drawable,
+			  Visual *visual, int width, int height) {
     EGLDisplay egl_disp;
     EGLSurface egl_surface;
     mbe_surface_t *surface;
@@ -282,7 +282,7 @@
 	return NULL;
 
     egl_disp = eglGetDisplay(display);
-    if(egl_disp == EGL_NO_DISPLAY)
+    if(egl_disp == EGL_NO_DISPLAY || egl_disp != _VG_DISPLAY())
 	return NULL;
 
     egl_surface = eglCreateWindowSurface(egl_disp, config, drawable,