aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-04-24 16:39:23 +0900
committerHermet Park <hermetpark@gmail.com>2019-04-24 16:45:05 +0900
commit3bd57c2c66af09b40aa60f17c09b07fadc78befb (patch)
tree851d2d85b35885e15627574db489d0ee9fbc332c
parentmeson: ensure that buffer header is installed correctly (diff)
downloadefl-3bd57c2c66af09b40aa60f17c09b07fadc78befb.tar.gz
evas x: code refactoring.
keep simple code as possible.
-rw-r--r--src/modules/evas/engines/gl_x11/evas_x_main.c12
1 files changed, 2 insertions, 10 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 3543d9390b..2d621fcda5 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -972,16 +972,8 @@ try_again:
config_attrs[n++] = 1;
// FIXME: end n900 breakage
# endif
- if (alpha)
- {
- config_attrs[i++] = EGL_ALPHA_SIZE;
- config_attrs[i++] = 1;
- }
- else
- {
- config_attrs[i++] = EGL_ALPHA_SIZE;
- config_attrs[i++] = 0;
- }
+ config_attrs[i++] = EGL_ALPHA_SIZE;
+ config_attrs[i++] = (alpha ? 1 : 0);
if (depth_bits)
{