Nikolay Sivov : gdiplus: Use defined constants for wrap modes.
Alexandre Julliard
julliard at winehq.org
Thu Aug 24 14:18:25 CDT 2017
Module: wine
Branch: master
Commit: 42e5d2702e692c5829f42c0fe238bb2d738109c9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=42e5d2702e692c5829f42c0fe238bb2d738109c9
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Aug 24 14:24:34 2017 +0300
gdiplus: Use defined constants for wrap modes.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/graphics.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index d20df77..80e565b 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -898,9 +898,8 @@ static ARGB sample_bitmap_pixel(GDIPCONST GpRect *src_rect, LPBYTE bits, UINT wi
if (y < 0)
y = height*2 + y % (height * 2);
- if ((attributes->wrap & 1) == 1)
+ if (attributes->wrap & WrapModeTileFlipX)
{
- /* Flip X */
if ((x / width) % 2 == 0)
x = x % width;
else
@@ -909,9 +908,8 @@ static ARGB sample_bitmap_pixel(GDIPCONST GpRect *src_rect, LPBYTE bits, UINT wi
else
x = x % width;
- if ((attributes->wrap & 2) == 2)
+ if (attributes->wrap & WrapModeTileFlipY)
{
- /* Flip Y */
if ((y / height) % 2 == 0)
y = y % height;
else
More information about the wine-cvs
mailing list