Nikolay Sivov
9d123b5424
gdiplus: Trace GpRectF arguments.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 19:56:07 +02:00
Vincent Povirk
2329a2fa3d
gdiplus: Transform region rects as rects when possible.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-07 11:47:57 -06:00
Nikolay Sivov
aef2f0799f
gdiplus/metafile: Implement EmfPlusRegion deserialization.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-20 19:00:41 +02:00
Vincent Povirk
e127101122
gdiplus: Send paths to gdi32 in device coordinates.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-01 07:34:34 +02:00
Piotr Caban
14bb8df8a5
gdiplus: Support GdipSetClipRegion in metafiles.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 11:14:44 +09:00
Piotr Caban
4a02870296
gdiplus: Add write_region_data helper and use it in GdipGetRegionData.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 11:14:41 +09:00
Piotr Caban
58eb74c43d
gdiplus: Use write_path_data helper in GdipGetRegionData.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 20:53:41 +02:00
Piotr Caban
55453327f5
gdiplus: Store newer gdi+ version in created GdipRegions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 20:53:31 +02:00
Vincent Povirk
cfe2b3fa0e
gdiplus: Don't require specific gdi+ versions in metafile structures.
...
Based on testing of manually edited metafiles, only the signature portion
of version fields are tested, not the version number.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:34 +02:00
Nikolay Sivov
668fe2030d
gdiplus: Fix its vs it's typos.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 11:13:49 -05:00
Michael Stefaniuc
9c64ca0d93
gdiplus: Use SetRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:16:50 +09:00
Alexandre Julliard
bc44b3f60d
gdiplus: Avoid using PathToRegion with an empty path.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-16 01:21:47 +09:00
Sebastian Lackner
aa70a90c6e
gdiplus: Do not use GdipAlloc and GdipFree in internal functions.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:44:22 +09:00
Dmitry Timoshkov
a66d664505
gdiplus: Implement GdipCreateRegionRgnData.
2015-06-15 17:40:43 +09:00
Nikolay Sivov
0a15e163db
gdiplus: Implement trivial case of GdipCreateRegionRgnData for empty and infinite regions.
2015-06-10 15:50:44 +09:00
Vincent Povirk
1202e9af56
gdiplus: Allow excluding from infinite regions.
2013-11-18 11:15:12 +01:00
Dmitry Timoshkov
dd545c3e37
gdiplus: Use GdipFree instead of HeapFree to free memory allocated with GdipAlloc.
2013-11-15 12:01:20 +01:00
Dmitry Timoshkov
4bca12c0db
gdiplus: Slightly simplify write_path_types.
2013-11-15 12:01:16 +01:00
Dmitry Timoshkov
56a6500721
gdiplus: Check whether region path points really fit into shorts.
2013-11-13 11:27:24 +01:00
Dmitry Timoshkov
761391f156
gdiplus: Add a check for passed buffer size to GdipGetRegionData.
2013-11-13 11:26:24 +01:00
Dmitry Timoshkov
f5d807b7d7
gdiplus: Get rid of no longer needed path and region fields.
2013-11-12 14:14:46 +01:00
Dmitry Timoshkov
b0da542210
gdiplus: Determine type of the path at the time the region data are written instead of the path creation time.
2013-11-12 14:14:17 +01:00
Dmitry Timoshkov
108a633677
gdiplus: Use flags 0 for an empty path in region to follow Windows7+ behaviour.
2013-11-08 16:29:43 +01:00
Dmitry Timoshkov
394d4b07e6
gdiplus: Avoid not necessary memory allocations in GdipCreateRegionPath.
2013-11-08 16:29:43 +01:00
Dmitry Timoshkov
f204aab17f
gdiplus: Use same rounding formula that is used to decide whether a path should be stored as an array integers.
2013-11-08 16:29:43 +01:00
Dmitry Timoshkov
ec9a0d8570
gdiplus: GdipTransformRegion should not fail for an empty path.
2013-09-24 12:56:22 +02:00
Victor Martinez
e891fe4b8e
gdiplus: Fix returned rect in GdiGetRegionBoundsI.
2013-04-03 11:33:01 +02:00
Dmitry Timoshkov
65bd8f2b26
gdiplus: Print a passed in rectangle in GdipCombineRegionRect.
2013-03-11 10:46:06 +01:00
Dmitry Timoshkov
42a5943598
gdiplus: Use an off-screen DC to trace a path.
2013-02-20 18:21:25 +01:00
Andrew Talbot
32d070afb0
gdiplus: Avoid signed-unsigned integer comparisons.
2013-01-24 10:49:34 +01:00
Dmitry Timoshkov
10c84dfe3b
gdiplus: Rename roundr() to gdip_round() to make it clearer that it's an internal helper.
2012-08-21 11:47:11 +02:00
Dmitry Timoshkov
a33d34b83e
gdiplus: Avoid needless gotos.
2012-05-25 13:44:01 +02:00
Dmitry Timoshkov
4060716dc4
gdiplus: Return correct status code if GdipAlloc fails.
2012-05-25 13:43:57 +02:00
Dmitry Timoshkov
a7d14b0d2c
gdiplus: Reimplement GdipIsEmptyRegion.
2012-05-25 13:41:14 +02:00
Andrew Talbot
51804165aa
gdiplus: Remove unneeded address-of operators from array names.
2011-10-31 23:54:00 +01:00
Vincent Povirk
42d1d9e9e0
gdiplus: Clean up HRGN when GdipGetRegionBounds succeeds too.
2011-03-28 17:08:53 +02:00
Vincent Povirk
bb5f5dba93
gdiplus: Make get_path_hrgn work with HDC-less graphics objects.
2010-10-28 11:41:39 +02:00
Vincent Povirk
5f327f7812
gdiplus: Implement GdipGetRegionScans.
2010-10-28 11:41:32 +02:00
Vincent Povirk
473afa4b8c
gdiplus: Implement GdipGetRegionScansCount.
2010-10-01 13:44:06 +02:00
Vincent Povirk
40d8876fc4
gdiplus: Implement GdipTransformRegion.
2010-10-01 13:44:00 +02:00
Vincent Povirk
10990f5898
gdiplus: Stub GdipGetRegionScansCount.
2010-02-25 12:12:11 +01:00
Huw Davies
55bf97bba7
gdiplus: Fix a couple of memory leaks.
...
Found by Valgrind.
2009-12-07 14:18:24 +01:00
Andrew Eikum
2032b0d354
gdiplus: Implement GdipIsVisibleRegionRect.
2009-08-26 15:05:46 +02:00
Andrew Eikum
32996e0a11
gdiplus: Implement GdipIsVisibleRegionPoint.
2009-08-26 14:57:18 +02:00
Andrew Eikum
9ec5f9ad6f
gdiplus: Support regions of more than one rectangle in GdipCreateRegionHrgn.
2009-08-25 10:23:48 +02:00
Vincent Povirk
c71853cda5
gdiplus: Ignore the graphics transforms in GdipGetRegionBounds.
2009-08-04 12:49:01 +02:00
Nikolay Sivov
a3048451d9
gdiplus: Fix a docheader typo, add some missed headers.
2009-02-17 12:47:46 +01:00
Nikolay Sivov
dc3908a351
gdiplus: Implemented GdipGetRegionBounds/GdipGetRegionBoundsI.
2009-02-02 15:21:43 +01:00
Nikolay Sivov
cb8f4eb16c
gdiplus: Implemented GdipTranslateRegionI.
2009-02-02 15:21:43 +01:00
Nikolay Sivov
c3462b1101
gdiplus: Implemented GdipTranslateRegion.
2009-02-02 15:21:43 +01:00