Commit Graph

82 Commits

Author SHA1 Message Date
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
Nikolay Sivov 03a02d83dd gdiplus: Implemented GdipIsEqualRegion. 2009-02-02 15:21:43 +01:00
Nikolay Sivov 67f9570332 gdiplus: Implemented GdipCreateRegionHrgn for rectangular regions. 2009-01-30 13:00:27 +01:00
Vincent Povirk 3184dc9125 gdiplus: Do not call delete_element(NULL). 2009-01-26 14:29:22 +01:00
Vincent Povirk 5304b59184 gdiplus: Fix a memory leak in GdipCombineRegionRegion. 2008-12-09 10:25:13 +01:00
Vincent Povirk 28a71b3da3 gdiplus: Implement GdipGetRegionHRgn for combined regions. 2008-12-04 12:20:15 +01:00
Vincent Povirk 5e77c74f37 gdiplus: Implement GdipGetRegionHRgn for rects. 2008-11-25 13:11:50 +01:00
Vincent Povirk 08aa0cac74 gdiplus: Implement GdipRegionGetHRgn for paths. 2008-11-25 13:11:44 +01:00
Vincent Povirk 4f8751a5db gdiplus: Implement GdipGetRegionHRgn for empty regions. 2008-11-25 13:10:58 +01:00
Vincent Povirk 74d62bccab gdiplus: Implement GdipGetRegionHRgn for infinite regions. 2008-11-25 13:10:40 +01:00
Vincent Povirk 5c75277784 gdiplus: Add parameter checking to GdipGetRegionHRgn. 2008-11-25 13:10:24 +01:00
Nikolay Sivov 2fd51e94bd gdiplus: Some tests for GdipCreateRegionHrgn added. 2008-10-20 14:34:29 +02:00
Nikolay Sivov cf5562338a gdiplus: Fix API documentation name. 2008-09-03 14:21:41 +02:00