From 6e88cc5942954a1f6ceb63e64254ca9ac940500b Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 10 Aug 2018 12:06:42 -0400 Subject: [PATCH] evas gl_common: code refactoring. Summary: use boolean instead int, no logic changes. Reviewers: #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6807 --- src/modules/evas/engines/gl_common/evas_gl_context.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index b010057c2a..9a384d24de 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -2944,7 +2944,6 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc, const int points[6] = { 0, 1, 2, 0, 2, 3 }; int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0; GLfloat tx[4], ty[4], t2x[4], t2y[4]; - Eina_Bool blend = EINA_FALSE; DATA32 cmul; Shader_Sampling masksam = SHD_SAM11; Evas_GL_Program *prog; @@ -2953,23 +2952,25 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc, Eina_Bool use_texa = EINA_FALSE; Shader_Type type; int pn = 0, i; - int flat = 0, nomul = 0, yinvert = 0; + int nomul = 0, yinvert = 0; + Eina_Bool flat = EINA_FALSE; + Eina_Bool blend = EINA_FALSE; if (!(gc->dc->render_op == EVAS_RENDER_COPY) && ((a < 255) || (tex->alpha) || (!!mtex))) blend = EINA_TRUE; if ((A_VAL(&(p[0].col)) < 0xff) || (A_VAL(&(p[1].col)) < 0xff) || (A_VAL(&(p[2].col)) < 0xff) || (A_VAL(&(p[3].col)) < 0xff)) - blend = 1; + blend = EINA_TRUE; if ((p[0].z == p[1].z) && (p[1].z == p[2].z) && (p[2].z == p[3].z)) - flat = 1; + flat = EINA_TRUE; if (!clip) cx = cy = cw = ch = 0; if (!flat) { - if (p[0].foc <= 0) flat = 1; + if (p[0].foc <= 0) flat = EINA_TRUE; } switch (cspace)