Commit 11d68d05 authored by Byeongsik Jeon's avatar Byeongsik Jeon Committed by Alexandre Julliard

gdi32: Remove unnecessary operations.

The rgb part works from text rendering to alpha value. The '24' part is an unnecessary operation. Signed-off-by: 's avatarByeongsik Jeon <bsjeon@hanmail.net> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9f053430
...@@ -7422,15 +7422,13 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, ...@@ -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) | 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 * 1] << 8) |
((unsigned int)src[hmul * x + rgb_interval * 2] << 0) | ((unsigned int)src[hmul * x + rgb_interval * 2] << 0);
((unsigned int)src[hmul * x + rgb_interval * 1] << 24) ;
} }
else else
{ {
dst[x] = ((unsigned int)src[hmul * x + rgb_interval * 2] << 16) | 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 * 1] << 8) |
((unsigned int)src[hmul * x + rgb_interval * 0] << 0) | ((unsigned int)src[hmul * x + rgb_interval * 0] << 0);
((unsigned int)src[hmul * x + rgb_interval * 1] << 24) ;
} }
} }
src += src_pitch * vmul; src += src_pitch * vmul;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment