Font noise issue
authorWoo Seungsoo <om101.woo@samsung.com>
Fri, 9 Sep 2011 09:40:05 +0000 (18:40 +0900)
committerWoo Seungsoo <om101.woo@samsung.com>
Fri, 9 Sep 2011 09:40:05 +0000 (18:40 +0900)
Change-Id: I0762d5aa32f4c0a219dfe93f05c50f981ff6fb00

src/modules/engines/gl_common/evas_gl_texture.c

index b702130..227b80b 100644 (file)
@@ -952,8 +952,47 @@ evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels,
 #endif
    glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
    GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+
+   //  +-+
+   //  +-+
+   //
    _tex_sub_2d(tex->x, tex->y, w, h, tex->pt->format, tex->pt->dataformat,
                pixels);
+
+   DATA8 *ndata;
+   ndata = alloca(w * h);
+   memset(ndata, 0x00, sizeof(DATA8) * w * h);
+
+   // |xxx
+   // |xxx
+   //
+   _tex_sub_2d(tex->x - 1, tex->y, 1, h, tex->pt->format, tex->pt->dataformat,
+               ndata);
+
+   //  xxx|
+   //  xxx|
+   //
+   _tex_sub_2d(tex->x + w, tex->y, 1, h, tex->pt->format, tex->pt->dataformat,
+               ndata + (w - 1));
+
+   //  xxx
+   //  xxx
+   //  ---
+   _tex_sub_2d(tex->x, tex->y + h, w, 1, tex->pt->format, tex->pt->dataformat,
+               ndata + ((h - 1) * w));
+
+   //  xxx
+   //  xxx
+   // o
+   _tex_sub_2d(tex->x - 1, tex->y + h, 1, 1, tex->pt->format, tex->pt->dataformat,
+               ndata + ((h - 1) * w));
+
+   //  xxx
+   //  xxx
+   //     o
+   _tex_sub_2d(tex->x + w, tex->y + h, 1, 1, tex->pt->format, tex->pt->dataformat,
+               ndata + ((h - 1) * w) + (w - 1));
+
    if (tex->pt->texture != tex->gc->pipe[0].shader.cur_tex)
      {
         glBindTexture(GL_TEXTURE_2D, tex->gc->pipe[0].shader.cur_tex);