mirror of https://github.com/mpv-player/mpv
Hack: half-merge glyph border with outline to avoid ugly anti-aliasing
in certain situations. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28816 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
95dac90527
commit
153e7ada4c
|
@ -243,7 +243,7 @@ static bitmap_t* fix_outline_and_shadow(bitmap_t* bm_g, bitmap_t* bm_o)
|
|||
unsigned char c_g, c_o;
|
||||
c_g = g[x];
|
||||
c_o = o[x];
|
||||
o[x] = (c_o > c_g) ? c_o : 0;
|
||||
o[x] = (c_o > c_g) ? c_o - (c_g/2) : 0;
|
||||
s[x] = (c_o < 0xFF - c_g) ? c_o + c_g : 0xFF;
|
||||
}
|
||||
g += bm_g->w;
|
||||
|
|
Loading…
Reference in New Issue