aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas/engines/gl_x11/evas_x_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_x11/evas_x_main.c')
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c
index ad81f9982e..1b7cab645b 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -32,6 +32,7 @@ eng_window_new(Display *disp,
int w,
int h,
int indirect,
+ int alpha,
int rot)
{
Evas_GL_X11_Window *gw;
@@ -57,7 +58,7 @@ eng_window_new(Display *disp,
gw->visual = vis;
gw->colormap = cmap;
gw->depth = depth;
- gw->alpha = 1;
+ gw->alpha = alpha;
gw->w = w;
gw->h = h;
gw->rot = rot;
@@ -101,8 +102,16 @@ eng_window_new(Display *disp,
config_attrs[n++] = 1;
// FIXME: end n900 breakage
# endif
- config_attrs[n++] = EGL_ALPHA_SIZE;
- config_attrs[n++] = 1;
+ if (gw->alpha)
+ {
+ config_attrs[n++] = EGL_ALPHA_SIZE;
+ config_attrs[n++] = 1;
+ }
+ else
+ {
+ config_attrs[n++] = EGL_ALPHA_SIZE;
+ config_attrs[n++] = 0;
+ }
config_attrs[n++] = EGL_DEPTH_SIZE;
config_attrs[n++] = 0;
config_attrs[n++] = EGL_STENCIL_SIZE;