summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_font.c
diff options
context:
space:
mode:
authorabdulleh Ghujeh <a.ghujeh@samsung.com>2019-04-15 13:48:24 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-15 13:55:19 +0200
commitbc5df48ffe460b54da70d95efe0b617468158908 (patch)
tree0d6615329c93f4252e1e15a00aaea9e4f50a499e /src/modules/evas/engines/gl_common/evas_gl_font.c
parent7ded9453233732c083e8d307089d22cbde5624d7 (diff)
Unreachable code
Summary: Removed condition that will never be fulfilled Reviewers: ali.alzyod, bowonryu, woohyun, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8606
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_font.c6
1 files changed, 2 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 3d5d436448..b7bd643756 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_font.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_font.c
@@ -5,7 +5,7 @@ evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
5{ 5{
6 Evas_Engine_GL_Context *gc = context; 6 Evas_Engine_GL_Context *gc = context;
7 Evas_GL_Texture *tex; 7 Evas_GL_Texture *tex;
8 int w, h, j, nw, fh, y; 8 int w, h, nw, fh, y;
9 DATA8 *ndata, *data, *p1, *p2; 9 DATA8 *ndata, *data, *p1, *p2;
10 10
11 if (fg->ext_dat) return fg->ext_dat; // FIXME: one engine at a time can do this :( 11 if (fg->ext_dat) return fg->ext_dat; // FIXME: one engine at a time can do this :(
@@ -17,8 +17,6 @@ evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
17 if (!fg->glyph_out->rle) return NULL; 17 if (!fg->glyph_out->rle) return NULL;
18 data = evas_common_font_glyph_uncompress(fg, &w, &h); 18 data = evas_common_font_glyph_uncompress(fg, &w, &h);
19 if (!data) return NULL; 19 if (!data) return NULL;
20 j = w;
21 if (j < w) j = w;
22 20
23 // expand to 32bit (4 byte) aligned rows for texture upload 21 // expand to 32bit (4 byte) aligned rows for texture upload
24 nw = ((w + 3) / 4) * 4; 22 nw = ((w + 3) / 4) * 4;
@@ -31,7 +29,7 @@ evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
31 // else copy row by row 29 // else copy row by row
32 for (y = 0; y < h; y++) 30 for (y = 0; y < h; y++)
33 { 31 {
34 p1 = data + (j * y); 32 p1 = data + (w * y);
35 p2 = ndata + (nw * y); 33 p2 = ndata + (nw * y);
36 memcpy(p2,p1,w); 34 memcpy(p2,p1,w);
37 } 35 }