Commit graph

2286 commits

Author SHA1 Message Date
Fabian Maurer 279d8bf724 mlang: Return the correct interface in GetGlobalFontLinkObject.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56600
2024-07-02 20:05:34 +02:00
Esme Povirk 6753f25f58 gdiplus: Fix DIB stride calculation in GdipDrawImagePointsRect.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56800
2024-06-11 21:21:14 +02:00
Esme Povirk d41a1f0183 gdiplus: Don't call GetDeviceCaps for NULL dc. 2024-05-21 21:34:17 +02:00
Esme Povirk f20a1bb94f gdiplus: Do not store HDC on HWND Graphics objects. 2024-05-21 21:34:17 +02:00
Esme Povirk 8c04e7c0cc gdiplus: Bracket HDC use in gdi_transform_acquire/release. 2024-05-21 21:34:17 +02:00
Esme Povirk bc78d54d35 gdiplus: Bracket HDC use in get_path_hrgn. 2024-05-21 21:34:17 +02:00
Esme Povirk 3c14122fa5 gdiplus: Replace HDC use in draw_driver_string. 2024-05-21 21:34:17 +02:00
Esme Povirk 8b55affe3e gdiplus: Bracket HDC use in GDI32_GdipDrawDriverString. 2024-05-20 11:56:30 +02:00
Esme Povirk d9d7e8f392 gdiplus: Bracket HDC use in GdipDrawString. 2024-05-20 11:56:30 +02:00
Esme Povirk 9d30cddf06 gdiplus: Bracket HDC use in GdipMeasureString. 2024-05-20 11:56:29 +02:00
Esme Povirk 8f20be4ab8 gdiplus: Bracket HDC use in GdipMeasureCharacterRanges. 2024-05-20 11:56:29 +02:00
Esme Povirk ab2931797c gdiplus: Replace HDC check in GdipFlush. 2024-05-20 11:56:29 +02:00
Esme Povirk ef371697e0 gdiplus: Bracket HDC use in GDI32_GdipFillRegion. 2024-05-17 19:32:27 +02:00
Esme Povirk 1c360a01c9 gdiplus: Bracket HDC use in GDI32_GdipFillPath. 2024-05-17 19:32:27 +02:00
Esme Povirk eeb1227b21 gdiplus: Bracket HDC use in GdipDrawImagePointsRect. 2024-05-17 19:32:26 +02:00
Esme Povirk 6b19838162 gdiplus: Do not create gdi32 objects for Bitmap objects. 2024-05-17 19:32:26 +02:00
Esme Povirk 101ffccebf gdiplus: Add a test for GdipWidenPath with Custom linecaps. 2024-05-17 19:32:26 +02:00
Esme Povirk 0a324152e7 gdiplus: Reorder filled arrow cap points to match native. 2024-05-16 23:09:05 +02:00
Esme Povirk 0400ed7ec7 gdiplus: Fix signs on custom line cap rotation in add_anchor. 2024-05-16 23:09:05 +02:00
Esme Povirk aea505f58c gdiplus: Remove unnecessary math in add_anchor.
These additions and subtractions cancel each other out.
2024-05-16 23:09:05 +02:00
Esme Povirk b7caffea25 gdiplus: Support anchors on thin paths. 2024-05-16 23:09:05 +02:00
Esme Povirk 079f533d9c gdiplus: Bitmap stride is ignored when Scan0 is non-NULL. 2024-05-16 23:09:05 +02:00
Esme Povirk c6abeee9f0 gdiplus: Fix background key. 2024-05-12 16:33:14 +02:00
Esme Povirk 7b300bae8a gdiplus: Accept an HDC in get_gdi_transform. 2024-05-12 16:33:14 +02:00
Esme Povirk b95a40a28f gdiplus: Do not use hdc directly in get_graphics_bounds. 2024-05-12 16:33:14 +02:00
Esme Povirk 8cc552a123 gdiplus: Bracket HDC use in trace_path. 2024-05-12 16:33:14 +02:00
Esme Povirk 96a65cbfd1 gdiplus: Bracket HDC use in draw_poly. 2024-05-12 16:33:14 +02:00
Esme Povirk 646729f3f2 gdiplus: Bracket HDC use in draw_cap. 2024-05-08 20:41:15 +02:00
Esme Povirk a4ed61f39a gdiplus: Bracket hdc use in brush_fill_path. 2024-05-08 20:41:15 +02:00
Esme Povirk ed3cd9b35f gdiplus: Bracket HDC use in alpha_blend_pixels_hrgn. 2024-05-08 20:41:15 +02:00
Esme Povirk af6aaf779d gdiplus: Bracket HDC use in gdi_alpha_blend. 2024-05-08 20:41:15 +02:00
Esme Povirk e29623bbeb gdiplus: Add a function to bracket HDC use. 2024-05-08 20:41:15 +02:00
Piotr Caban bf12d17b48 gdiplus: Fix IWICBitmapFrameDecode reference leak in decode_frame_wic. 2024-04-17 22:27:45 +02:00
Zhiyi Zhang 9786ee2555 gdiplus: Search microsoft platform names first in load_ttf_name_id().
Search names in fonts in the order of Microsoft, Mac and finally Unicode platform. This is also the
order win32u uses to load font names.

Fix Granado Espada Japan (1219160) launcher crashes at start in the Japanese locale. The game ships
a font with a broken name record of Mac platform and encoding ID 0 (Roman) but the name string is in
code page 10001 (Japanese). This broken name record is placed before the name records for the
Microsoft platform so it gets selected first. Then the name string in the name record doesn't get
converted correctly to Unicode because of the wrong code page. Thus the EnumFontFamiliesExW()
in GdipPrivateAddMemoryFont() fails to find the font and causes game crash.
2024-04-04 20:56:20 +02:00
Zhiyi Zhang 242ee3d013 gdiplus/tests: Add tests for GdipPrivateAddMemoryFont(). 2024-04-04 20:56:20 +02:00
Esme Povirk 290dd95dd4 gdiplus: Calculate region bounding box without generating HRGN. 2024-03-20 23:07:34 +01:00
Esme Povirk 423ba9cb23 gdiplus/tests: Region bounds aren't rounded. 2024-03-20 23:05:27 +01:00
Esme Povirk 47e9980bb1 gdiplus: Check bounding box in GdipIsVisibleRegionPoint. 2024-03-11 12:18:49 +01:00
Esme Povirk 55f71fd846 gdiplus: Implement font linking in GdipAddPathString. 2024-03-01 23:14:22 +01:00
Esme Povirk 3ca8204837 gdiplus: Fix use after free in GdipAddPathString. 2024-03-01 23:14:22 +01:00
Esme Povirk 1ee1f2e9d7 gdiplus: Fix crash in GdipAddPathString.
Apparently, 1454ffe7dd introduced
the assumption that the font passed to gdip_format_string is
non-NULL, and GdipAddPathString wasn't passing it in.
2024-02-28 21:54:59 +01:00
Esme Povirk c37fea89e6 gdiplus: Restore hdc argument to gdip_format_string.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56345
2024-02-26 09:50:55 +01:00
Esme Povirk 0d0d37bbea gdiplus: Pass gdip_format_string_info to font link functions. 2024-02-26 09:50:55 +01:00
Esme Povirk f2c92c68a2 gdiplus: Switch to a struct for gdip_format_string callback args. 2024-02-26 09:50:55 +01:00
Santino Mazza ba4681e776 gdiplus: Implement font linking for gdiplus. 2024-02-12 23:02:03 +01:00
Santino Mazza d68a9d1213 gdiplus/tests: Add interactive test for font linking. 2024-02-12 23:02:03 +01:00
Santino Mazza 1454ffe7dd gdiplus: Replace HDC with GpGraphics in parameters. 2024-02-12 23:02:03 +01:00
Esme Povirk 23f98e9663 gdiplus/tests: Thoroughly test region combines. 2024-02-05 22:35:10 +01:00
Esme Povirk 13b2755d4d gdiplus: Fix some degenerate cases combining infinite regions. 2024-02-05 22:35:10 +01:00
Esme Povirk 294efcdf44 gdiplus: Prefer Tahoma for generic sans serif font.
Partial revert of 413fc34be7.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55421
2024-02-02 13:00:56 +01:00