aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas/engines/gl_common/evas_gl_font.c
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 /src/modules/evas/engines/gl_common/evas_gl_font.c
parenteet: properly handle failure and success case by not leaking memory. (diff)
downloadefl-cb1aae1fd24cd1ce0d76894a5116f510c422c6a1.tar.gz
evas: do not compute things twice.
Fix CID 1265599, 1265597, 1265598 and 1265596.
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_font.c')
-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
gc->dc->clip.w, gc->dc->clip.h);
if ((nw < 1) || (nh < 1)) return;
- ssx = (double)sx + ((double)(sw * (nx - x)) / (double)(tex->w));
- ssy = (double)sy + ((double)(sh * (ny - y)) / (double)(tex->h));
- ssw = ((double)sw * (double)(nw)) / (double)(tex->w);
- ssh = ((double)sh * (double)(nh)) / (double)(tex->h);
+ //ssx = (double)sx + ((double)(sw * (nx - x)) / (double)(tex->w));
+ //ssy = (double)sy + ((double)(sh * (ny - y)) / (double)(tex->h));
+ //ssw = ((double)sw * (double)(nw)) / (double)(tex->w);
+ //ssh = ((double)sh * (double)(nh)) / (double)(tex->h);
dx = x; dy = y; dw = sw; dh = sh;
mx = gc->dc->clip.mask_x; my = gc->dc->clip.mask_y; mw = mask->w; mh = mask->h;