gdiplus: Use defined constants for wrap modes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d78767b63c
commit
42e5d2702e
|
@ -898,9 +898,8 @@ static ARGB sample_bitmap_pixel(GDIPCONST GpRect *src_rect, LPBYTE bits, UINT wi
|
||||||
if (y < 0)
|
if (y < 0)
|
||||||
y = height*2 + y % (height * 2);
|
y = height*2 + y % (height * 2);
|
||||||
|
|
||||||
if ((attributes->wrap & 1) == 1)
|
if (attributes->wrap & WrapModeTileFlipX)
|
||||||
{
|
{
|
||||||
/* Flip X */
|
|
||||||
if ((x / width) % 2 == 0)
|
if ((x / width) % 2 == 0)
|
||||||
x = x % width;
|
x = x % width;
|
||||||
else
|
else
|
||||||
|
@ -909,9 +908,8 @@ static ARGB sample_bitmap_pixel(GDIPCONST GpRect *src_rect, LPBYTE bits, UINT wi
|
||||||
else
|
else
|
||||||
x = x % width;
|
x = x % width;
|
||||||
|
|
||||||
if ((attributes->wrap & 2) == 2)
|
if (attributes->wrap & WrapModeTileFlipY)
|
||||||
{
|
{
|
||||||
/* Flip Y */
|
|
||||||
if ((y / height) % 2 == 0)
|
if ((y / height) % 2 == 0)
|
||||||
y = y % height;
|
y = y % height;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue