Commit Graph

169 Commits

Author SHA1 Message Date
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
Michael Stefaniuc 5d2aa1eebd gdiplus: Avoid using the comma operator.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-22 19:50:16 +01:00
Nikolay Sivov 0937186f7d gdiplus: Fix brush transform created with GdipCreateLineBrushFromRect().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-28 10:43:37 +01:00
Nikolay Sivov 6906117bc3 gdiplus: Add a helper to create gradient brush from rectangle.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-28 10:43:37 +01:00
Nikolay Sivov 8463159344 gdiplus: Use ARRAY_SIZE() macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 23:51:27 +02:00
André Hentschel e7b16bcb57 gdiplus: Add stub for GdipSetPathGradientPath.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 21:05:26 +02:00
Hugh Bellamy b8f56c0b86 gdiplus: Add GdipCreateLineBrushFromRectWithAngle tests.
Signed-off-by: Hugh Bellamy <hughbellars@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 18:29:18 +02:00
Hugh Bellamy c022c46613 gdiplus: Define GpHatchStyle.
Signed-off-by: Hugh Bellamy <hughbellars@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 18:44:34 +02:00
Hugh Bellamy e0601829e1 gdiplus: Fix validation of HatchStyle in GdipCreateHatchBrush.
Signed-off-by: Hugh Bellamy <hughbellars@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 18:27:07 +02:00
Andrew Eikum aac33dab2a gdiplus: Implement transform matrix for line gradient brushes.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:07:54 +09:00
Piotr Caban befb8603e2 gdiplus: Fix GdipCreateLineBrushFromRectWithAngle implementation.
The patch fixes isAngleScalable==TRUE argument handling. It also fixes a
mistake when width was used instead of height.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-25 18:33:33 +02:00
Nikolay Sivov 2de908f3ff gdiplus: Remove some casts.
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-05 14:50:30 -05: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
Nikolay Sivov d78a0612ed gdiplus: Fix image attributes leak (Coverity). 2014-03-27 12:06:03 +01:00
Dmitry Timoshkov 2cca510a5b gdiplus: Protect from mixing BrushTypeLinearGradient and BrushTypePathGradient. 2013-03-11 10:46:33 +01:00
Dmitry Timoshkov 39ec8ce67e gdiplus: Store transformation matrix directly in the objects. 2012-11-08 15:37:49 +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
Vincent Povirk 3a3ca55ffa gdiplus: Return OutOfMemory when creating a path gradient from a NULL path. 2012-04-26 19:27:01 +02:00
Vincent Povirk ea3e26e32d gdiplus: Return OutOfMemory when creating a path gradient with NULL points. 2012-04-26 19:26:57 +02:00
Vincent Povirk e2b59a87b0 gdiplus: Store only one surround color if all colors are the same. 2012-04-25 12:16:36 +02:00
Vincent Povirk 8273d58a96 gdiplus: Implement GdipSetPathGradientSigmaBlend. 2012-04-25 12:16:24 +02:00
Vincent Povirk d0a85604d5 gdiplus: Implement GdipSetPathGradientLinearBlend. 2012-04-25 12:16:20 +02:00
Vincent Povirk b66fd44080 gdiplus: Implement GdipSetPathGradientBlend, with tests. 2012-04-25 12:16:15 +02:00
Vincent Povirk 4a78d7c6b4 gdiplus: Remove FIXME on implemented function. 2012-04-25 12:16:09 +02:00
Vincent Povirk c374fe9bdb gdiplus: Implement path gradient transform setters. 2012-04-04 19:02:42 +02:00
Vincent Povirk 09b7aed7a2 gdiplus: Set the wrap mode in the path gradient constructor. 2012-04-04 19:02:36 +02:00
Vincent Povirk b228426d8e gdiplus: Default path gradient center color depends on the constructor. 2012-04-04 19:02:30 +02:00
Vincent Povirk ad9976eb22 gdiplus: Forbid creating path gradients with fewer than 2 points. 2012-04-02 12:38:01 +02:00
Vincent Povirk 52bf030b84 gdiplus: Implement GdipGetPathGradientTransform. 2012-04-02 12:37:55 +02:00
Vincent Povirk 5254a76a0c gdiplus: Implement path gradient preset blend accessors. 2012-04-02 12:37:43 +02:00
Vincent Povirk a85bb87cc3 gdiplus: Implement GdipGetPathGradientCenterColor. 2012-04-02 12:37:35 +02:00
Vincent Povirk 7e90dc3dc7 gdiplus: Implement path gradient surround color accessors. 2012-03-15 19:56:13 +01:00
Vincent Povirk 1515a4b89c gdiplus: Set path gradient center points based on the path's bounding rect. 2012-03-13 10:27:50 +01:00
Vincent Povirk 116665d7fc gdiplus: Add stub GdipGetPathGradientPath with tests. 2012-03-13 10:27:44 +01:00
Vincent Povirk 96d66f1666 gdiplus: Store a real path in path gradient brushes. 2012-03-13 10:27:35 +01:00
Dmitry Timoshkov b39425f3cf gdiplus: Create GDI bitmap only when needed. 2012-03-12 10:43:53 +01:00
Dmitry Timoshkov 0d7bc4b325 gdiplus: Create GDI brush only when needed. 2012-03-09 11:30:46 +01:00
Dan Kegel 8f073bf4c7 gdiplus: Make GdipTranslateLineTransform stub lie and return Ok. 2012-02-16 11:57:27 +01:00
André Hentschel 66f212e667 gdiplus: Add a FIXME. 2011-04-13 14:13:52 +02:00
Vincent Povirk 4266b154be gdiplus: Initialize the ImageAttributes in GdipCreateTexture2I. 2011-03-28 17:08:53 +02:00
Vincent Povirk 8a036abc5c gdiplus: Implement software rendering of texture brushes. 2011-03-11 11:48:08 +01:00
Vincent Povirk 86d58dc6c8 gdiplus: Store an ImageAttributes in texture brushes. 2011-02-15 17:01:43 +01:00
Vincent Povirk b7e664bc5c gdiplus: Add a software implementation of hatch brushes. 2011-01-24 12:13:54 +01:00
Vincent Povirk bb444e81cc gdiplus: Fix point conversion in GdipCreateLineBrushI. 2010-11-01 11:33:19 +01:00
Vincent Povirk 2661ce79d6 gdiplus: Reject linear gradients where the start and end points are equal. 2010-10-28 11:41:45 +02:00
Vincent Povirk b57c4314c1 gdiplus: Stub GdipGetPathGradientPresetBlend. 2010-08-23 12:03:32 +02:00
Vincent Povirk 8dd940d0b5 gdiplus: Stub GdipTranslatePathGradientTransform. 2010-08-23 12:03:26 +02:00
Vincent Povirk 1a710ac36f gdiplus: Stub GdipGetPathGradientTransform. 2010-08-17 11:55:33 +02:00
Vincent Povirk 41f4263277 gdiplus: Stub GdipSetPathGradientLinearBlend. 2010-08-17 11:55:33 +02:00
Vincent Povirk 462c599335 gdiplus: Stub GdipScalePathGradientTransform. 2010-08-17 11:55:33 +02:00