From 20dcd26b29e7c8ec367bb0167086f3ca7414fcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 19 Aug 2013 04:41:14 -0300 Subject: [PATCH] Improved OutlineEntropia method. --- src/eepp/graphics/cttffont.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/eepp/graphics/cttffont.cpp b/src/eepp/graphics/cttffont.cpp index 2a00fe93d..d7399f585 100755 --- a/src/eepp/graphics/cttffont.cpp +++ b/src/eepp/graphics/cttffont.cpp @@ -278,12 +278,8 @@ bool cTTFFont::iLoad( const eeUint& Size, EE_TTF_FONT_STYLE Style, const Uint16& RPos = ( nGlyphR.Left + x ) + ( nGlyphR.Top + y ) * w; Pos = x + y * nGlyphS.x; - // Fill the outline color - mPixels[ RPos ] = eeColorA( OutlineColor, alpha_final[ Pos ] ); - - // Fill the font color - if ( alpha_init[ Pos ] > 50 ) - mPixels[ RPos ] = eeColorA( FontColor, alpha_init[ Pos ] ); + // Blending the normal glyph color to the outline color + mPixels[ RPos ] = Color::Blend( eeColorA( FontColor, alpha_init[ Pos ] ), eeColorA( OutlineColor, alpha_final[ Pos ] ) ); } }