Huw Davies
7be1c53d82
gdi32: Rename the struct representing an embedded EMF in a WMF.
...
Also, use an array rather than a pointer to represent the start of the data.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-08 23:08:00 +09:00
Alexandre Julliard
d341b0c381
user32: Completely free owned DCEs when the corresponding window/class is destroyed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 09:55:03 +09:00
Andrey Gusev
9a80284e1a
gdi32: Fix a typo in a pointer name in primitive_funcs.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 23:42:23 +09:00
Andrey Gusev
6fae520e1c
gdi32/tests: Fix a typo in trace() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 12:27:18 +09:00
Piotr Caban
dfb750b9c2
gdi32/enhmfdrv: Don't update document bounds in PolyPolyline within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:44 +09:00
Piotr Caban
67e26bec8d
gdi32/enhmfdrv: Don't update document bounds in Polyline within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:44 +09:00
Piotr Caban
0d84feaf49
gdi32/enhmfdrv: Don't update document bounds in RoundRect within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:44 +09:00
Piotr Caban
661bc10bfe
gdi32/enhmfdrv: Don't update document bounds in Ellipse within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:44 +09:00
Piotr Caban
c36f365329
gdi32/enhmfdrv: Don't update document bounds in Arc/Chord/Pie within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:44 +09:00
Piotr Caban
d307bba0f4
gdi32/enhmfdrv: Add enhanced metafile bounds tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
c019c68b45
gdi32/enhmfdrv: Don't update document bounds in LineTo within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
44f860daff
gdi32/enhmfdrv: Don't update document bounds in Rectangle within a path.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
3a12eb2083
gdi32/enhmfdrv: Add ExtTextOut tests with unmatched BeginPath/EndPath calls.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
269b2519a7
gdi32/enhmfdrv: Always set ExtTextOut bounding rect if we're not inside path bracket.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
a3e741fd4c
gdi32/enhmfdrv: Fix PolyBezierTo bounding box computation.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:02:43 +09:00
Piotr Caban
d9e7c4d820
gdi32/enhmfdrv: Don't drop viewport/window transformation in StretchBlt.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-22 21:04:35 +09:00
Michael Stefaniuc
4b7adc087a
gdi32: Use wine_dbgstr_rect() to trace RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 18:42:02 +09:00
Piotr Caban
69e37ff05e
gdi32: Use advanced graphics mode when setting world transform in PlayEnhMetaFileRecord.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 18:26:52 +09:00
Francois Gouget
bf5508f9e0
gdi32/tests: A spelling fix in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 21:30:22 +09:00
Huw Davies
ef34222131
gdi32/tests: Allocate the font enum data structures.
...
These are in excess of 250kB and may overflow the stack.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-14 19:26:11 +09:00
Henri Verbeet
0a41694b53
gdi32: Implement DC creation from pre-existing memory.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:07 +09:00
Huw Davies
bb4ead4c7c
gdi32: Use abs() on an integer argument to avoid a clang warning.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 21:00:52 +09:00
Huw Davies
66351b3de3
gdi32: Implement playback of the GradientFill EMF record.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-08 23:01:38 +09:00
Huw Davies
ac0959cdf6
gdi32: Implement recording of the GradientFill EMF record.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-08 23:01:28 +09:00
Nikolay Sivov
4161f5120b
gdi32: Increase first gdi handle value.
...
Due to 32->16bit handle truncation low enough handle values could be
misinterpreted as stock brushes indices in FillRect().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-08 23:00:58 +09:00
Jactry Zeng
5bf4345824
gdi32: Load system fonts on Android.
...
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 17:08:30 +09:00
Alexandre Julliard
1eac54ef7d
gdi32: Take into account the fontdir directory specified at build time.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-17 19:44:01 +09:00
Huw Davies
a36b4a6abb
gdi32/tests: Add tests for EMF PolyPolyline record creation.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 21:22:34 +09:00
Huw Davies
6e05189ba4
gdi32: Don't update the bounds if any poly{line|gon} has fewer than two points.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 21:22:32 +09:00
Huw Davies
2e4a37f2cf
gdi32: Generate EMR_POLYPOLY{LINE|GON}16 records if the co-ords fit.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 21:22:28 +09:00
Michael Stefaniuc
a23038217d
gdi32/tests: Use SetRectEmpty() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 18:43:04 +09:00
Nikolay Sivov
4b05cac391
gdi32: Use a macro instead of accessing FT_Face flags directly.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 19:20:50 +09:00
Alexandre Julliard
0bbeaae678
make_unicode: Mark most data tables as hidden.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 00:25:01 +09:00
Alistair Leslie-Hughes
bd571e7d1d
gdi32/tests: Add tests for GetPath using metafile.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 20:24:17 +09:00
Alistair Leslie-Hughes
9ac1744b80
gdi32/tests: Check values returned from GetPath.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 19:59:07 +09:00
Charles Davis
c94336f381
gdi32: Declare our intent explicitly to the compiler.
...
Clang warns about this abs(3) call because the argument is of unsigned
type.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 02:06:11 +09:00
Nikolay Sivov
932838faa3
gdi32: Only REG_SZ and REG_MULTI_SZ types make sense for font replacement, ignore the rest.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:54 +09:00
Nikolay Sivov
10437c027f
gdi32/tests: Simplify tests using todo_wine_if().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:17:28 +09:00
Nikolay Sivov
c98f40e227
gdi32: Fix otmfsSelection to have bold style set in case of bold simulation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 13:40:28 +09:00
Nikolay Sivov
11be16ca79
gdi32/tests: Turn some asserts in font tests into regular tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 23:27:16 +09:00
Nikolay Sivov
6389f41135
gdi32: Fix otmfsSelection to have italic style set in case of oblique simulation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 23:27:13 +09:00
Alexandre Julliard
232dc29ff8
make_unicode: Update vertical orientation table to the latest version.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 17:23:31 +09:00
Akihiro Sagawa
a8d426e93a
gdi32: Implement synthesizing bold glyphs for bitmap fonts.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:49:54 +09:00
Akihiro Sagawa
ba79c19d09
gdi32: Return an boolean value whether synthesizing bold glyph is success.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:49:49 +09:00
Akihiro Sagawa
34e7361790
gdi32: Fix the advance width in synthetic bold glyphs with scaling.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:49:43 +09:00
Akihiro Sagawa
f0831ecd2f
gdi32: Add a helper function to calculate the glyph advance metric.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:49:39 +09:00
Akihiro Sagawa
79ab7456ed
gdi32: Fixup the internal ntmFlags for bitmap fonts.
...
The value is used not for APIs, but for our fake-bold implementation.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:48:47 +01:00
Akihiro Sagawa
37fdc50097
gdi32/tests: Add font advance tests for synthetic bold face with scaling.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:48:44 +01:00
Akihiro Sagawa
6cd42f3df7
gdi32/tests: Refactor test_fake_bold_font() to avoid code duplications.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:48:41 +01:00
Nikolay Sivov
1aa53bc470
gdi32: Initialize 'param' field (Coverity).
...
For consistency with the rest of the code, initialize both
'free' and 'param' fields.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:46:35 +01:00
Andrey Melnikov
d4d304f436
gdi32: Handle NULL filename in GetICMProfileA().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Andrey Melnikov <temnota.am@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:18:45 +01:00
Nikolay Sivov
f0223182af
gdi32/tests: Some tests for GetICMProfile().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-15 09:12:40 +01:00
Alexandre Julliard
eddc4609ec
gdi32: Fix StretchDIBits color mapping for monochrome bitmaps without a color table.
...
This is the equivalent of df924f6a8c
for
the StretchDIBits case.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:20 +09:00
Alexandre Julliard
89f12fc101
gdi32: Periodically flush a window surface if the app is continuously painting.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:31 +09:00
Sebastian Lackner
a1790df348
gdi32: Add check for NULL pointer in dibdrv_wglDescribePixelFormat.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 23:57:49 +09:00
Nikolay Sivov
0e92f07f41
gdi32/tests: Some empty string tests for GetTextExtentPoint.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:09:31 +09:00
Qian Hong
e50cd3b06b
gdi32: Initialize system font link registry.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:10:06 +09:00
Huw Davies
3d58c354ae
gdi32: Take into account the mask's offset.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 21:11:26 +09:00
Anton Baskanov
18dc14ed9a
gdi32: Return default palette entries from GetSystemPaletteEntries for non-palette-based devices.
...
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:09 +09:00
Dmitry Timoshkov
d774442e8d
gdi32: Fix heap corruption.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 00:25:34 +09:00
Sebastian Lackner
04bd68409a
gdi32: Use RtlIsCriticalSectionLockedByThread to check lock owner.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:40 +09:00
Nikolay Sivov
819d36786e
gdi32: Improve structure layout of data returned by GetFontRealizationInfo().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 13:00:32 +09:00
Aric Stewart
fc94e5dd5f
gdi32/tests: Mark Hebrew stock font test as different, like Arabic.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-06 00:01:56 +09:00
Michael Müller
cde2fbb08e
gdi32: Make BitBlt and StretchDIBits hotpatchable.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:13 +09:00
Nikolay Sivov
6f7dfe2cea
gdi32: Implement GetFontFileInfo().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2015-10-05 22:27:11 +09:00
Aric Stewart
781b88b7c5
gdi32/tests: Expand tests skipped in Arabic to also skip in Hebrew.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-01 23:29:57 +09:00
Nikolay Sivov
7f4c158a39
gdi32: Return font ids from GetFontRealizationInfo().
2015-10-01 23:00:24 +09:00
Ken Thomases
a05cdaa1b8
gdi32: Antialias fake bold or italic fonts regardless of GASP table.
...
If the client requests a bold typeface of a font which doesn't actually provide
a bold typeface, Wine fakes it using FT_Outline_Embolden(). Likewise, it fakes
italic by apply a shear transform.
These techniques work passably when antialiasing is in effect. However, when
antialiasing is disabled at small sizes by the font's GASP table, the results
are horrible. The glyphs have many spurs or appear furry.
On the theory that fonts disable antialiasing via the GASP table at small sizes
because hinting should produce pixel-perfect results and that that rationale is
voided by the application of procedural bolding or italicizing, we ignore the
GASP table and always antialias for fake bold or italic fonts.
There is a new registry setting to disable this and revert to the previous
behavior:
[HKEY_CURRENT_USER\Software\Wine\Fonts]
"AntialiasFakeBoldOrItalic"="n"
Signed-off-by: Ken Thomases <ken@codeweavers.com>
2015-10-01 16:31:54 +09:00
Nikolay Sivov
af5884ffe5
gdi32/freetype: Handle fonts with broken usWinDescent values.
2015-10-01 16:29:40 +09:00
Nikolay Sivov
efb8afcfdc
gdi32/tests: Avoid excessive traces for fonts with OS/2 version 4 tables.
2015-09-11 16:05:23 +09:00
Alexandre Julliard
58fe3afff5
gdi32: Add an intermediate pointer to avoid a compiler warning.
2015-09-10 19:47:24 +09:00
Gerald Pfeifer
775de7922e
gdi32: Avoid two cases of shift overflow in get_glyph_indices.
2015-09-08 15:10:59 +09:00
Alistair Leslie-Hughes
8348c0ebe0
gdi32/tests: Add enhanced metafile GetPath test.
2015-09-01 21:12:10 +09:00
Nikolay Sivov
7889b17425
gdi32: Added GetFontRealizationInfo() export.
2015-09-01 19:28:16 +09:00
Nikolay Sivov
adb0f582e0
gdi32/tests: Add names to data structure GetFontRealizationInfo returns, explicitly test with older variant fields.
2015-09-01 19:27:20 +09:00
Huw Davies
5021e91940
gdi32/tests: 64-bit GetFontFileInfo may fail with error ERROR_NOACCESS.
2015-08-20 20:35:20 +09:00
Huw Davies
76c321d5e6
gdi32: Add tests for GetFontRealizationInfo, GetFontFileInfo and GetFontFileData.
2015-08-17 14:52:15 +09:00
Francois Gouget
f8a7d6ed74
Assorted spelling fixes.
2015-08-07 23:50:48 +09:00
Daniel Lehman
22c51eeabf
gdi32: Check for NULL pointer in GetOutlineTextMetrics.
2015-07-28 13:41:46 +02:00
Dmitry Timoshkov
50b6b376cb
gdi32: EnumFontFamilies should enumerate substituted fonts only when directly asked for.
2015-07-17 19:29:10 +09:00
Dmitry Timoshkov
5289c9fd92
gdi32: Add a test for enumerating substituted fonts.
...
EnumFontFamilies(NULL) should not enumerate substituted fonts,
but EnumFontFamilies("MS Shell Dlg") should do.
2015-07-17 19:28:32 +09:00
Jactry Zeng
c015447d07
gdi32: Add multiple font replacement support.
2015-07-17 16:40:29 +09:00
Jactry Zeng
cb59350ed9
gdi32: Add a helper to map font replacement.
2015-07-17 16:40:29 +09:00
Nikolay Sivov
d5c9a8a57a
gdi32: Clarify offsets and sizes in vdmx table lookup code.
2015-06-30 14:36:41 +09:00
Nikolay Sivov
7ebdd58556
gdi32: Add a separate helper to load FT_Short values (Coverity).
2015-06-29 19:07:45 +09:00
Nikolay Sivov
885394bb0a
gdi32/freetype: Properly handle loading of FT_Long-sized types (Valgrind).
2015-06-22 19:16:48 +09:00
Huw Davies
c81ff0f8cf
gdi32/tests: Japanese Win 7 uses MS Shell Dlg as its default GUI font.
2015-06-19 20:14:38 +09:00
Huw Davies
002cf965e1
gdi32/tests: Fix Courier test on Arabic locales.
2015-06-18 21:41:02 +09:00
Nikolay Sivov
ce58518c6e
gdi32: Return GCP_USEKERNING if font has kerning pairs support.
2015-06-08 15:29:53 +09:00
Thomas Faller
9244cac3af
gdi32: Prevent unneeded operations by flag check.
2015-06-04 15:57:41 +09:00
Huw Davies
0c1f329053
gdi32: Prevent the underline / strikeout width getting rounded to zero.
2015-05-19 19:24:43 +09:00
Francois Gouget
150d920310
gdi32/tests: Silence some font traces that generate too many lines.
2015-05-11 15:19:04 +09:00
Patrick Rudolph
d2a91a3aed
gdi32: Add stub functions.
2015-04-17 17:32:46 +09:00
Bruno Jesus
5c323a540c
gdi32: Support negative count values in GetBitmapBits.
2015-04-08 16:23:49 +09:00
Thomas Faber
8a390c8661
gdi32: Avoid uninitialized variable use in EnumEnhMetaFile (MSVC).
2015-03-30 20:05:16 +09:00
Michael Stefaniuc
8293cf33e0
gdi32: Remove double parentheses, not a misplaced pair (PVS-Studio).
2015-03-06 20:32:00 +09:00
Alexandre Julliard
336be2f694
gdi32: Use shorter constants for byte and word masks to avoid warnings.
2015-03-04 21:50:35 +09:00
Michael Müller
e618ab65ed
gdi32: Fix arguments for OSMesaMakeCurrent when using 16 bit formats.
2015-02-26 20:10:08 +09:00
Thomas Faber
656bc70f80
gdi32/tests: Avoid variable length arrays (MSVC).
2015-02-17 22:28:14 +09:00
Ken Thomases
e9c36154e3
gdi32: Change an ERR to a WARN for fonts with too-long names.
...
The situation is commonplace on Macs and benign.
2015-02-16 19:18:39 +09:00
Aric Stewart
ecbda5686d
gdi32: Do not install fonts with a family name that is too long.
2015-01-20 16:34:22 +01:00
Nikolay Sivov
88202b3d9b
gdi32: Remove some useless returns.
2014-12-15 13:40:27 +01:00
Michael Stefaniuc
80218d19ef
gdi32/tests: Don't clear a variable before it goes out of scope (PVS-Studio).
2014-11-28 17:04:21 +01:00
Nikolay Sivov
0c507a1768
gdi32: Clarify read length values used with get_font_data().
2014-11-26 17:35:14 +01:00
André Hentschel
d83ae0ef40
gdi32: Remove unused function (Clang).
2014-11-25 19:49:36 +01:00
Nikolay Sivov
2f0a4a4425
gdi32: Remove undefs for names that are never defined.
2014-11-25 19:49:30 +01:00
André Hentschel
d9d1725295
gdi32: Remove unused string (Clang).
2014-11-20 22:32:04 +09:00
Amine Khaldi
b9f18b3431
gdi32/tests: Add basic tests for the handling of dwCount parameter in ExtCreateRegion.
2014-11-03 16:35:11 +09:00
Michael Stefaniuc
b5a405af2f
gdi32: Remove a basically unused variable (PVS-Studio).
2014-11-03 16:34:52 +09:00
André Hentschel
88e8102570
gdi32: Fix typo in a condition (PVS-Studio).
2014-10-28 14:05:19 +09:00
Alexandre Julliard
55f24da978
gdi32: Check the hatch masks instead of the rop masks for the null and mask optimization case.
2014-10-27 17:35:44 +09:00
Matteo Bruni
a71f25d239
gdi32/tests: Add a test for GetGlyphOutline with an insufficient buffer.
2014-10-09 18:24:53 +02:00
Matteo Bruni
112a7f7f97
gdi32: Don't overflow the buffer in GetGlyphOutline.
2014-10-09 18:24:47 +02:00
Gerald Pfeifer
ff05f2dec6
gdi32: Remove unused constant bit_fields_565.
2014-08-11 23:55:19 +02:00
Thomas Faber
07ca1afbd3
gdi32: Do not omit mandatory argument to WriteFile.
2014-07-14 17:22:39 +02:00
Qian Hong
887a6832bb
gdi32/tests: Improve font name localization tests by not requiring a strict language match.
2014-07-10 12:40:44 +02:00
Alexandre Julliard
18d410dec1
tools: Don't include wine/unicode.h if not necessary.
2014-07-08 17:00:22 +02:00
Alexander Almaleh
8762842cd3
gdi32: Fix XFORM.eM22 calculation in PlgBlt.
2014-06-26 21:19:25 +02:00
Frédéric Delanoy
2ab8729020
Assorted spelling/grammar fixes.
2014-06-20 12:19:31 +02:00
Alexandre Julliard
ec3f8a76d5
gdi32/tests: Silence some noisy traces.
2014-06-17 10:58:51 +02:00
Alexandre Julliard
7d21dd26c8
gdi32/tests: Remove some noisy traces.
2014-06-13 10:12:28 +02:00
Huw Davies
80a29e2d31
gdi32: CLIP_DFA_DISABLE should disable the font association mechanism.
2014-06-11 19:15:28 +02:00
Huw Davies
0987e77089
gdi32/tests: tmLastChar is solely governed by the last entry before 0xffff in the cmap.
2014-06-11 16:04:55 +02:00
Alex Henrie
0fb88f8d01
gdi32/tests: Add MS Shell Dlg tests.
2014-05-13 19:58:09 +02:00
Stefan Dösinger
a373c35371
gdi32/tests: Test RGBQUAD.rgbReserved in SetDIBColorTable.
2014-05-07 20:21:52 +02:00
Huw Davies
c66f0019ff
gdi32: In a Hebrew locale the last char of a symbol font is reported as 0xf896 rather than 0xf0ff.
2014-05-07 18:57:35 +02:00
Alex Henrie
d2dce849b5
gdi32: Simplify family_matches and face_matches.
2014-05-07 10:22:08 +02:00
Henri Verbeet
9016d1eda0
gdi32: Use FIELD_OFFSET to calculate the structure size in GetRegionData().
2014-05-06 13:51:40 +02:00
Akihiro Sagawa
b6ef7274c5
gdi32/tests: Make bmi structure const.
2014-05-02 16:29:03 +02:00
Frédéric Delanoy
2e5cb7aac8
Assorted spelling/grammar fixes.
2014-04-30 18:34:20 +02:00
Alexandre Julliard
47ed5655c5
gdi32/tests: Don't fetch the bits into the DIB itself.
2014-04-28 14:37:02 +02:00
Nikolay Sivov
8a3f3c0817
gdi32/dibdrv: Fix a clipped_rects leak (Valgrind).
2014-04-25 11:05:19 +02:00
Alexandre Julliard
955676bc05
gdi32: Pass the full DC handle to the hook in DeleteDC.
2014-04-14 09:38:01 +02:00
Austin English
d0fa8cbc74
gdi32/tests: Skip some tests if Times New Roman is not installed.
2014-04-11 19:12:31 +02:00
Thomas Faber
ff3d728d74
gdi32: Avoid variable-length arrays.
2014-03-25 13:55:45 +01:00
Akihiro Sagawa
f548ce29ed
gdi32/tests: GetGlyphOutlineA is broken for johab charset on windows.
2014-03-20 10:41:48 +01:00
André Hentschel
87d85357cd
gdi32/tests: GetCharABCWidthsA is broken for johab charset on windows.
2014-03-18 11:40:30 +01:00
Akihiro Sagawa
04e8b00ab0
gdi32: Improve the font enumeration order for complex script locales.
2014-03-12 20:27:43 +01:00
Henri Verbeet
cf5023bfff
gdi32/tests: Fix test_device_caps() on multihead setups.
...
Unfortunately this currently mostly fails on Wine.
2014-03-11 19:39:36 +01:00
Henri Verbeet
d8ec2b5d95
gdi32/tests: Fix test_window_dc_clipping() when the virtual screen origin is not (0, 0).
2014-03-11 19:39:35 +01:00
Akihiro Sagawa
1e7116ca9f
gdi32/tests: Avoid using GetGlyphIndices directly.
2014-02-19 16:39:29 +01:00
Akihiro Sagawa
efe7a9763f
gdi32/tests: Improve the font search method for test_EnumFontFamiliesEx_default_charset.
2014-02-19 16:39:29 +01:00
Akihiro Sagawa
feaf554778
gdi32/tests: Mark Win2k result as broken.
2014-02-19 16:39:28 +01:00
Frédéric Delanoy
0f2bed51bd
Assorted spelling fixes.
2014-02-10 15:47:29 +01:00
André Hentschel
540d1459f9
gdi32: Use boolean return values in boolean functions.
2014-01-30 14:51:36 +01:00
Alexandre Julliard
cf0e96c6d0
configure: Rename substituted variables to a standard _CFLAGS and _LIBS format.
2014-01-30 14:51:33 +01:00
Alexandre Julliard
db2be9dc0b
configure: Add a pkg-config check for fontconfig.
2014-01-30 14:51:30 +01:00
Alexandre Julliard
8aa64e3580
configure: Automatically expand _CFLAGS and _LIBS variables in all makefiles.
2014-01-30 12:42:56 +01:00
Akihiro Sagawa
e06d2dbc67
gdi32: Fix regression due to sub-pixel shift calculations fixes.
2014-01-27 14:13:28 +01:00
Alexandre Julliard
36301db4d3
gdi32/tests: Update a few more failing DIB cases.
2014-01-14 20:18:15 +01:00
Akihiro Sagawa
f6475ace5f
gdi32: Improve vertical writing metrics.
2014-01-13 17:37:38 +01:00
Akihiro Sagawa
a221654aae
gdi32/tests: Add tests for vertical writing metrics.
2014-01-13 17:37:37 +01:00
Akihiro Sagawa
f6bc356860
gdi32: Fix ABC metrics for rotated font.
2014-01-13 17:37:35 +01:00
Akihiro Sagawa
b8f22f4755
gdi32/tests: Add more GetCharABCWidths tests for rotated font.
2014-01-13 17:37:34 +01:00
Akihiro Sagawa
e9188970a7
gdi32: Fix sub-pixel shift calculations for vertical writing.
2014-01-13 17:37:33 +01:00
Akihiro Sagawa
d33602564b
gdi32: Use the vertAdvance value for cellIncX if vertical metrics are available.
2014-01-13 17:37:32 +01:00
Akihiro Sagawa
ebccff8225
gdi32: Relax vertical face requirements.
2014-01-09 18:07:15 +01:00
Akihiro Sagawa
142a0f7af0
gdi32: Fix DBCS mask value in GetFontLanguageInfo.
2014-01-09 18:06:11 +01:00
Akihiro Sagawa
ab32c657ed
gdi32: Use defined names in GetFontLanguageInfo.
2014-01-09 18:06:05 +01:00
Frédéric Delanoy
91f2435469
Assorted spelling fixes.
2014-01-09 17:39:59 +01:00
Alexandre Julliard
d1463cc44b
gdi32/tests: Run all DIB tests with a hardcoded palette.
2014-01-09 17:39:53 +01:00
Alexandre Julliard
eba26475fb
gdi32/tests: Don't test unreliable palette entries.
2014-01-09 17:39:52 +01:00
Frédéric Delanoy
e7594272fe
gdi32: Use BOOL type where appropriate.
2014-01-06 17:14:32 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00
André Hentschel
4573aecf5b
gdi32: Fix a comment.
2014-01-02 11:52:11 +01:00
Francois Gouget
b6ba53e572
gdi32/tests: Fix a flood of failures on Windows XP SP1 and 2003 pre-SP1.
2014-01-01 11:45:00 +01:00
Alexandre Julliard
200eb1d30b
gdi32: Trigger the display driver load for CreateCompatibleDC(0).
2013-12-30 19:01:53 +01:00
Alexandre Julliard
7c3bb6070a
gdi32: Don't bother returning the driver module from DRIVER_load_driver.
2013-12-30 19:01:52 +01:00
Alexandre Julliard
64b21eee94
makedep: Generate rules for TrueType fonts in maintainer mode.
2013-12-27 14:31:51 +01:00
Frédéric Delanoy
cc97a2385a
gdi32/tests: Constify a character string.
2013-12-23 11:54:31 +01:00
Alexandre Julliard
4f3d71cef3
makefiles: Get rid of the no longer used PO_SRCS variables.
2013-12-15 10:23:04 +01:00
Akihiro Sagawa
a88a121059
gdi32: Use ANSI character code as glyph index for bitmap fonts.
2013-12-11 18:16:59 +01:00
Akihiro Sagawa
882398b0a9
gdi32: Return ANSI character code as glyph index for bitmap fonts.
2013-12-11 16:30:22 +01:00
Aric Stewart
ff0717d004
gdi32: Use vertical orientation table to determine rotation.
2013-12-04 21:18:55 +01:00
Aric Stewart
742cde4fab
tools: Build vertical orientation table.
...
Based on data related to UTR #50 Unicode Vertical Text Layout.
2013-12-04 16:34:04 +01:00
Frédéric Delanoy
5ba7f79bad
Assorted spelling fixes.
2013-12-03 19:41:53 +01:00
Alexandre Julliard
67f9b6e3c5
configure: Update FreeType configure checks for the changed headers location.
2013-11-30 11:55:26 +01:00
Alexandre Julliard
456c8f435a
makefiles: Remove the no longer needed EXTRASUBDIRS variables.
2013-11-09 22:10:52 +01:00
Frédéric Delanoy
259cb3c8cd
gdi32/tests: Use BOOL type where appropriate.
2013-11-07 13:13:12 +01:00
Frédéric Delanoy
adee328a50
gdi32: Use BOOL type where appropriate.
2013-11-07 13:13:05 +01:00
Frédéric Delanoy
4da17dbf5d
gdi32/tests: Align return type from SetVirtualResolution prototype with its definition.
2013-11-07 13:12:42 +01:00
Alexandre Julliard
5756ee09f3
makefiles: Add makedep pragmas for rc files that contain translations.
2013-11-05 20:38:19 +01:00
Alexandre Julliard
3bd1e59cfb
gdi32: Remove no longer used default driver name.
2013-10-30 09:47:22 +01:00
Alexandre Julliard
e650da3570
gdi32: Get rid of the driver module in the DC.
2013-10-29 12:51:26 +01:00
Alexandre Julliard
74efeab238
gdi32: Trigger creation of the desktop window when the display driver is needed.
2013-10-29 12:51:26 +01:00
Alexandre Julliard
9675aa173a
gdi32: Allow user32 to specify the display driver to use.
2013-10-29 12:51:26 +01:00
Akihiro Sagawa
99ceb599bb
gdi32: Synthesize bold glyphs for outline fonts.
2013-10-21 20:23:55 +02:00
Akihiro Sagawa
cab2cacb8e
gdi32: Adjust fake bold outline font metrics.
2013-10-21 20:23:55 +02:00
Akihiro Sagawa
b6666014c5
gdi32/tests: Add tests for fake bold outline fonts.
2013-10-21 20:23:54 +02:00
Alexandre Julliard
67d452d8ac
gdi32: Always initialize the em_scale variable.
2013-10-21 17:08:54 +02:00
Alexandre Julliard
3e88582a78
gdi32: Determine the virtual resolution dynamically if it hasn't been set.
2013-10-17 12:12:48 +02:00
Dmitry Timoshkov
87ae85f1b4
gdi32/tests: Enable gdi32 tests compilation with __WINESRC__ defined.
2013-10-17 10:47:00 +02:00
Dmitry Timoshkov
8c22e66217
gdi32/tests: Fix font tests compilation with __WINESRC__ defined.
2013-10-17 10:46:51 +02:00
Dmitry Timoshkov
f81c2e1caf
gdi32/tests: Fix pen tests compilation with __WINESRC__ defined.
2013-10-16 11:41:21 +02:00
Dmitry Timoshkov
0c63f40bdc
gdi32/tests: Fix metafile tests compilation with __WINESRC__ defined.
2013-10-16 11:41:21 +02:00
Dmitry Timoshkov
c58072833e
gdi32/tests: Fix GDI object tests compilation with __WINESRC__ defined.
2013-10-16 11:41:21 +02:00
Dmitry Timoshkov
85b42085a4
gdi32/tests: Fix DIB tests compilation with __WINESRC__ defined.
2013-10-16 11:41:21 +02:00
Dmitry Timoshkov
120ee4e058
gdi32/tests: Fix DC tests compilation with __WINESRC__ defined.
2013-10-16 11:41:21 +02:00
Dmitry Timoshkov
dd579e4c78
gdi32/tests: Fix brush tests compilation with __WINESRC__ defined.
2013-10-16 11:41:20 +02:00