summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-01-21 16:13:50 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-21 16:13:50 +0100
commitcb1aae1fd24cd1ce0d76894a5116f510c422c6a1 (patch)
treefb33e346629d728432aff653bd2d0117758be59a
parentd2b766a51d92e36f72929c7863da8a0ba7bdff40 (diff)
evas: do not compute things twice.
Fix CID 1265599, 1265597, 1265598 and 1265596.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_font.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_font.c b/src/modules/evas/engines/gl_common/evas_gl_font.c
index 773ac99df6..248634bb07 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_font.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_font.c
@@ -95,10 +95,10 @@ evas_gl_font_texture_draw(void *context, void *surface EINA_UNUSED, void *draw_c
95 gc->dc->clip.w, gc->dc->clip.h); 95 gc->dc->clip.w, gc->dc->clip.h);
96 if ((nw < 1) || (nh < 1)) return; 96 if ((nw < 1) || (nh < 1)) return;
97 97
98 ssx = (double)sx + ((double)(sw * (nx - x)) / (double)(tex->w)); 98 //ssx = (double)sx + ((double)(sw * (nx - x)) / (double)(tex->w));
99 ssy = (double)sy + ((double)(sh * (ny - y)) / (double)(tex->h)); 99 //ssy = (double)sy + ((double)(sh * (ny - y)) / (double)(tex->h));
100 ssw = ((double)sw * (double)(nw)) / (double)(tex->w); 100 //ssw = ((double)sw * (double)(nw)) / (double)(tex->w);
101 ssh = ((double)sh * (double)(nh)) / (double)(tex->h); 101 //ssh = ((double)sh * (double)(nh)) / (double)(tex->h);
102 102
103 dx = x; dy = y; dw = sw; dh = sh; 103 dx = x; dy = y; dw = sw; dh = sh;
104 mx = gc->dc->clip.mask_x; my = gc->dc->clip.mask_y; mw = mask->w; mh = mask->h; 104 mx = gc->dc->clip.mask_x; my = gc->dc->clip.mask_y; mw = mask->w; mh = mask->h;