Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
016dc76a
Commit
016dc76a
authored
Aug 30, 2017
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Transform clipping region to gdi device coordinates.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5796610
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
graphics.c
dlls/gdiplus/graphics.c
+20
-2
graphics.c
dlls/gdiplus/tests/graphics.c
+1
-1
No files found.
dlls/gdiplus/graphics.c
View file @
016dc76a
...
@@ -348,8 +348,26 @@ static void gdi_alpha_blend(GpGraphics *graphics, INT dst_x, INT dst_y, INT dst_
...
@@ -348,8 +348,26 @@ static void gdi_alpha_blend(GpGraphics *graphics, INT dst_x, INT dst_y, INT dst_
static
GpStatus
get_clip_hrgn
(
GpGraphics
*
graphics
,
HRGN
*
hrgn
)
static
GpStatus
get_clip_hrgn
(
GpGraphics
*
graphics
,
HRGN
*
hrgn
)
{
{
/* clipping region is in device coords */
GpRegion
*
rgn
;
return
GdipGetRegionHRgn
(
graphics
->
clip
,
NULL
,
hrgn
);
GpMatrix
transform
;
GpStatus
stat
;
stat
=
get_graphics_transform
(
graphics
,
WineCoordinateSpaceGdiDevice
,
CoordinateSpaceDevice
,
&
transform
);
if
(
stat
==
Ok
)
stat
=
GdipCloneRegion
(
graphics
->
clip
,
&
rgn
);
if
(
stat
==
Ok
)
{
stat
=
GdipTransformRegion
(
rgn
,
&
transform
);
if
(
stat
==
Ok
)
stat
=
GdipGetRegionHRgn
(
rgn
,
NULL
,
hrgn
);
GdipDeleteRegion
(
rgn
);
}
return
stat
;
}
}
/* Draw ARGB data to the given graphics object */
/* Draw ARGB data to the given graphics object */
...
...
dlls/gdiplus/tests/graphics.c
View file @
016dc76a
...
@@ -6276,7 +6276,7 @@ static void test_GdipFillRectanglesOnMemoryDCSolidBrush(void)
...
@@ -6276,7 +6276,7 @@ static void test_GdipFillRectanglesOnMemoryDCSolidBrush(void)
color
[
5
]
=
get_bitmap_pixel
(
width
-
1
,
height
/
2
-
1
);
color
[
5
]
=
get_bitmap_pixel
(
width
-
1
,
height
/
2
-
1
);
}
}
todo_wine
ok
(
is_blue_color
(
color
[
0
])
&&
is_blue_color
(
color
[
1
])
&&
is_blue_color
(
color
[
2
])
&&
ok
(
is_blue_color
(
color
[
0
])
&&
is_blue_color
(
color
[
1
])
&&
is_blue_color
(
color
[
2
])
&&
color
[
3
]
==
0
&&
color
[
4
]
==
0
&&
color
[
5
]
==
0
,
color
[
3
]
==
0
&&
color
[
4
]
==
0
&&
color
[
5
]
==
0
,
"Expected GdipFillRectangleI take effect!
\n
"
);
"Expected GdipFillRectangleI take effect!
\n
"
);
ReleaseBitmapPixelBuffer
(
pixel
);
ReleaseBitmapPixelBuffer
(
pixel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment