gdi32: Remove unnecessary operations.
The rgb part works from text rendering to alpha value. The '24' part is an unnecessary operation. Signed-off-by: Byeongsik Jeon <bsjeon@hanmail.net> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9f05343013
commit
11d68d05a7
|
@ -7422,15 +7422,13 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
|
|||
{
|
||||
dst[x] = ((unsigned int)src[hmul * x + rgb_interval * 0] << 16) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 1] << 8) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 2] << 0) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 1] << 24) ;
|
||||
((unsigned int)src[hmul * x + rgb_interval * 2] << 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
dst[x] = ((unsigned int)src[hmul * x + rgb_interval * 2] << 16) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 1] << 8) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 0] << 0) |
|
||||
((unsigned int)src[hmul * x + rgb_interval * 1] << 24) ;
|
||||
((unsigned int)src[hmul * x + rgb_interval * 0] << 0);
|
||||
}
|
||||
}
|
||||
src += src_pitch * vmul;
|
||||
|
|
Loading…
Reference in New Issue