Byeongsik Jeon : gdi32: Remove unnecessary operations.

Alexandre Julliard julliard at winehq.org
Wed Oct 10 15:41:01 CDT 2018


Module: wine
Branch: master
Commit: 11d68d05a72ad0ac459aa8bce222b1a59e864268
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=11d68d05a72ad0ac459aa8bce222b1a59e864268

Author: Byeongsik Jeon <bsjeon at hanmail.net>
Date:   Tue Oct  9 21:13:26 2018 +0900

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 at hanmail.net>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/freetype.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 2dd2dcd..1d4cf53 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -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;




More information about the wine-cvs mailing list