Nikolay Sivov
a3ed938e4a
gdiplus/tests: Add some missing return value checks (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-07 10:47:20 -06:00
Nikolay Sivov
a9bc0fec92
gdiplus/tests: Fix region leak (Coverity).
...
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-08-16 20:18:10 +02:00
Zhiyi Zhang
cba24001e4
gdiplus: Avoid calling GdipFillPath() with an empty path.
...
There is no point filling an empty path. And an empty
path will cause SelectClipPath() used in brush_fill_path()
to return error.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 16:53:34 +02:00
Michael Stefaniuc
741037ca4b
gdiplus/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 11:41:59 +02:00
Vincent Povirk
989c29870f
gdiplus: Optimize clip region transforms.
...
Testing shows that this affects behavior. Transforming a region turns
empty rectangles (with negative width or height) into non-empty
rectangles. If an empty rectangle is set, it's treated as non-empty
only when there is a world transform.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-07 11:48:00 -06:00
Nikolay Sivov
b1ccf61f22
gdiplus/tests: Check more return values (Coverity).
...
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-11-30 20:44:33 +01:00
Vincent Povirk
2ea6c93bc4
gdiplus/tests: Add tests for gdi32 transform and clip caching.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-04 21:56:07 +02:00
Michael Stefaniuc
3a42c84e0f
gdiplus: Remove a wrapper around GdipFree().
...
GdipFree() already deals with NULL input.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-20 19:03:14 +02:00
Vincent Povirk
b32c324378
gdiplus: Account for gdi32 transform in GdipSetClipHrgn.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-05 21:35:31 +02:00
Vincent Povirk
399fd55f5c
gdiplus: Account for gdi transform in SOFTWARE_GdipFillRegion.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 19:51:26 +02:00
Changhui Liu
24f109072c
gdiplus/tests: Add drawing tests for GdipFillRegion with gdi transform.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 19:51:22 +02:00
Vincent Povirk
016dc76ab2
gdiplus: Transform clipping region to gdi device coordinates.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 19:51:02 +02:00
Vincent Povirk
c579661006
gdiplus: Test that clip region doesn't account for gdi32 transform changes.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 19:51:00 +02:00
Changhui Liu
cbaa358d6d
gdiplus/tests: Add test for hdc with window origin point changed.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:28 +02:00
Vincent Povirk
5c12cede8d
gdiplus: Check for invalid coordinate space in GdipTransformPoints.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:27 +02:00
Andrew Eikum
1744277bee
gdiplus: Implement stub for GdipGraphicsSetAbort.
...
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-07-27 21:59:41 +02:00
Vincent Povirk
8f54e2034e
gdiplus/tests: Enable floating point exceptions.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-26 10:10:10 +02:00
Vincent Povirk
dd5fd46c63
gdiplus/tests: Add tests for 0-pixel pens.
...
It turns out that GdipDrawLine behaves differently from GdipDrawPath, only
in the case of a 0 pixel pen.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-14 09:17:14 +02:00
Vincent Povirk
18964c9665
gdiplus/tests: Add tests for GdipBeginContainer.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 10:59:51 +09:00
Vincent Povirk
cc8cc65f79
gdiplus: Fix mismatched use of Begin/EndContainer and Save/RestoreGraphics.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:55:10 +09:00
Vincent Povirk
8fbdd670ca
gdiplus/tests: Test mixing Begin/EndContainer and Save/Restore.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-15 12:55:08 +09:00
Michael Stefaniuc
5fce51236c
gdiplus/tests: Make use of todo_wine_if().
...
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-08-05 14:50:30 -05:00
Michael Stefaniuc
64a1028bfe
gdiplus/tests: Use wine_dbgstr_rect() to print RECTs.
...
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-06-11 18:10:04 +09:00
Vincent Povirk
be5b270690
gdiplus: Return visible clip bounds in world coordinates.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-07 12:32:21 +09:00
Vincent Povirk
6ee26aca16
gdiplus: Apply page scale to pen thickness.
2015-03-24 14:06:02 +09:00
Vincent Povirk
137128fa50
gdiplus: Fonts in UnitWorld shouldn't be scaled to the page unit.
2015-03-23 16:20:39 +09:00
Vincent Povirk
e9d9ef591b
gdiplus: GdipGetDC doesn't set the alpha channel for a 32-bit dib.
2015-03-19 14:07:41 +09:00
Vincent Povirk
08c1e6cd96
gdiplus: Do not access Bitmap bits when drawing transparent pixels.
2015-03-18 19:38:07 +09:00
Changhui Liu
5fa7402a36
gdiplus: Fix get_graphics_bounds when window origin point changed.
2015-01-19 18:47:47 +01:00
Michael Stefaniuc
0c91032f3a
gdiplus/tests: Actually test a GdipCreateFromHDC call (PVS-Studio).
2015-01-16 16:52:52 +01:00
André Hentschel
e63b0a0a45
gdiplus/tests: Fix compiler warnings with flag -Wunused-macros.
2014-12-11 11:55:56 +01:00
Vincent Povirk
efc1d791a3
gdiplus/tests: Fix image leak in graphics test.
2014-04-30 09:33:55 +02:00
Vincent Povirk
78459aea0d
gdiplus: Improve GdipFillRectangles parameter validation.
2014-02-20 11:18:24 +01:00
André Hentschel
374b449fdd
gdiplus/tests: Remove assertions in graphics tests.
2014-02-12 19:15:05 +01:00
Dmitry Timoshkov
1c8d4aaa4b
gdiplus/tests: Fix tests compilation with __WINESRC__ defined.
2013-10-16 11:41:20 +02:00
Dmitry Timoshkov
cdc3e820cd
gdiplus: Fix clipping region bounds calculation with rotating transform.
2013-07-30 20:51:52 +02:00
Dmitry Timoshkov
249bf0eb63
gdiplus/tests: Add clipping region tests with rotating world transform.
2013-07-30 20:51:47 +02:00
Marcus Meissner
716f115293
gdiplus/tests: Check return code of GdipGetClipBounds (Coverity).
2013-07-22 17:16:04 +02:00
Dmitry Timoshkov
14f34c15d1
gdiplus: Store graphics clipping region in device coordinates.
2013-07-19 11:58:23 +02:00
Dmitry Timoshkov
c8ebd4ade0
gdiplus/tests: Test how device to world transform correlates with clipping region bounding rectangle.
2013-07-19 11:57:56 +02:00
Dmitry Timoshkov
ffd207850c
gdiplus/tests: Add another set of clipping region tests.
2013-07-12 12:14:58 +02:00
Dmitry Timoshkov
964778fda5
gdiplus/tests: Add tests for a sample 100x100 rectangle region.
2013-07-10 11:00:00 +02:00
Dmitry Timoshkov
ccdc41d8c4
gdiplus: Add more clipping region tests.
2013-07-09 22:21:58 +02:00
Dmitry Timoshkov
e1572f9cd1
gdiplus/tests: Add GdipGetClipBounds tests.
2013-07-08 15:15:40 +02:00
Dmitry Timoshkov
84ef3d484c
gdiplus: get_font_hfont() should ask gdi32 to match font height against the character height instead of cell height.
2013-06-19 19:18:39 +02:00
Vincent Povirk
e21af554b5
gdiplus: Add test for measuring a single line that exactly fits.
2013-05-31 12:00:16 +02:00
Dmitry Timoshkov
6ab04040e5
gdiplus: GdipMeasureCharacterRanges should treat empty layout extents as infinite when StringFormatFlagsNoClip is specified.
...
Unlike GdipMeasureString which always treats empty layout extents as infinite.
2013-03-15 11:43:24 +01:00
Dmitry Timoshkov
db746fe897
gdiplus: GdipMeasureCharacterRanges shouldn't add margins to string bounds.
2013-03-15 11:43:13 +01:00
Dmitry Timoshkov
4b19b618f5
gdiplus: Add more GdipMeasureString/GdipMeasureCharacterRanges clipping and alignment tests.
2013-03-14 12:03:45 +01:00
Vincent Povirk
636e60b6e0
gdiplus: Fix GdipCreateBitmapFromGraphics implementation.
2013-03-11 10:42:40 +01:00