mingw-dwrite_3.patch 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. From 86f4e9cbb5d3099179dc51332970d61d394116f6 Mon Sep 17 00:00:00 2001
  2. From: Sanketh Menda <me@snkth.com>
  3. Date: Sat, 17 Oct 2020 15:39:42 -0400
  4. Subject: [PATCH] dwrite_3.h: rename GetGlyphImageFormats_ to
  5. GetGlyphImageFormats
  6. Wine's WIDL currently doesn't support overloading functions, so till
  7. that is fixed patch dwrite_3.h to rename GlyphImageFormats_ to
  8. GetGlyphImageFormats.
  9. ---
  10. mingw-w64-headers/include/dwrite_3.h | 18 +++++++++---------
  11. 1 file changed, 9 insertions(+), 9 deletions(-)
  12. diff --git a/mingw-w64-headers/include/dwrite_3.h b/mingw-w64-headers/include/dwrite_3.h
  13. index 427c39e3b..dd894a8b1 100644
  14. --- a/mingw-w64-headers/include/dwrite_3.h
  15. +++ b/mingw-w64-headers/include/dwrite_3.h
  16. @@ -8168,7 +8168,7 @@ DEFINE_GUID(IID_IDWriteFontFace4, 0x27f2a904, 0x4eb8, 0x441d, 0x96,0x78, 0x05,0x
  17. MIDL_INTERFACE("27f2a904-4eb8-441d-9678-0563f53e3e2f")
  18. IDWriteFontFace4 : public IDWriteFontFace3
  19. {
  20. - virtual HRESULT STDMETHODCALLTYPE GetGlyphImageFormats_(
  21. + virtual HRESULT STDMETHODCALLTYPE GetGlyphImageFormats(
  22. UINT16 glyph,
  23. UINT32 ppem_first,
  24. UINT32 ppem_last,
  25. @@ -8468,7 +8468,7 @@ typedef struct IDWriteFontFace4Vtbl {
  26. WINBOOL *are_local);
  27. /*** IDWriteFontFace4 methods ***/
  28. - HRESULT (STDMETHODCALLTYPE *GetGlyphImageFormats_)(
  29. + HRESULT (STDMETHODCALLTYPE *GetGlyphImageFormats)(
  30. IDWriteFontFace4 *This,
  31. UINT16 glyph,
  32. UINT32 ppem_first,
  33. @@ -8549,7 +8549,7 @@ interface IDWriteFontFace4 {
  34. #define IDWriteFontFace4_AreCharactersLocal(This,characters,count,enqueue_if_not,are_local) (This)->lpVtbl->AreCharactersLocal(This,characters,count,enqueue_if_not,are_local)
  35. #define IDWriteFontFace4_AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local) (This)->lpVtbl->AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local)
  36. /*** IDWriteFontFace4 methods ***/
  37. -#define IDWriteFontFace4_GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats) (This)->lpVtbl->GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats)
  38. +#define IDWriteFontFace4_GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats) (This)->lpVtbl->GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats)
  39. #define IDWriteFontFace4_GetGlyphImageFormats(This) (This)->lpVtbl->GetGlyphImageFormats(This)
  40. #define IDWriteFontFace4_GetGlyphImageData(This,glyph,ppem,format,data,context) (This)->lpVtbl->GetGlyphImageData(This,glyph,ppem,format,data,context)
  41. #define IDWriteFontFace4_ReleaseGlyphImageData(This,context) (This)->lpVtbl->ReleaseGlyphImageData(This,context)
  42. @@ -8692,8 +8692,8 @@ static FORCEINLINE HRESULT IDWriteFontFace4_AreGlyphsLocal(IDWriteFontFace4* Thi
  43. return This->lpVtbl->AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local);
  44. }
  45. /*** IDWriteFontFace4 methods ***/
  46. -static FORCEINLINE HRESULT IDWriteFontFace4_GetGlyphImageFormats_(IDWriteFontFace4* This,UINT16 glyph,UINT32 ppem_first,UINT32 ppem_last,DWRITE_GLYPH_IMAGE_FORMATS *formats) {
  47. - return This->lpVtbl->GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats);
  48. +static FORCEINLINE HRESULT IDWriteFontFace4_GetGlyphImageFormats(IDWriteFontFace4* This,UINT16 glyph,UINT32 ppem_first,UINT32 ppem_last,DWRITE_GLYPH_IMAGE_FORMATS *formats) {
  49. + return This->lpVtbl->GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats);
  50. }
  51. static FORCEINLINE DWRITE_GLYPH_IMAGE_FORMATS IDWriteFontFace4_GetGlyphImageFormats(IDWriteFontFace4* This) {
  52. return This->lpVtbl->GetGlyphImageFormats(This);
  53. @@ -9020,7 +9020,7 @@ typedef struct IDWriteFontFace5Vtbl {
  54. WINBOOL *are_local);
  55. /*** IDWriteFontFace4 methods ***/
  56. - HRESULT (STDMETHODCALLTYPE *GetGlyphImageFormats_)(
  57. + HRESULT (STDMETHODCALLTYPE *GetGlyphImageFormats)(
  58. IDWriteFontFace5 *This,
  59. UINT16 glyph,
  60. UINT32 ppem_first,
  61. @@ -9121,7 +9121,7 @@ interface IDWriteFontFace5 {
  62. #define IDWriteFontFace5_AreCharactersLocal(This,characters,count,enqueue_if_not,are_local) (This)->lpVtbl->AreCharactersLocal(This,characters,count,enqueue_if_not,are_local)
  63. #define IDWriteFontFace5_AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local) (This)->lpVtbl->AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local)
  64. /*** IDWriteFontFace4 methods ***/
  65. -#define IDWriteFontFace5_GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats) (This)->lpVtbl->GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats)
  66. +#define IDWriteFontFace5_GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats) (This)->lpVtbl->GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats)
  67. #define IDWriteFontFace5_GetGlyphImageFormats(This) (This)->lpVtbl->GetGlyphImageFormats(This)
  68. #define IDWriteFontFace5_GetGlyphImageData(This,glyph,ppem,format,data,context) (This)->lpVtbl->GetGlyphImageData(This,glyph,ppem,format,data,context)
  69. #define IDWriteFontFace5_ReleaseGlyphImageData(This,context) (This)->lpVtbl->ReleaseGlyphImageData(This,context)
  70. @@ -9270,8 +9270,8 @@ static FORCEINLINE HRESULT IDWriteFontFace5_AreGlyphsLocal(IDWriteFontFace5* Thi
  71. return This->lpVtbl->AreGlyphsLocal(This,glyphs,count,enqueue_if_not,are_local);
  72. }
  73. /*** IDWriteFontFace4 methods ***/
  74. -static FORCEINLINE HRESULT IDWriteFontFace5_GetGlyphImageFormats_(IDWriteFontFace5* This,UINT16 glyph,UINT32 ppem_first,UINT32 ppem_last,DWRITE_GLYPH_IMAGE_FORMATS *formats) {
  75. - return This->lpVtbl->GetGlyphImageFormats_(This,glyph,ppem_first,ppem_last,formats);
  76. +static FORCEINLINE HRESULT IDWriteFontFace5_GetGlyphImageFormats(IDWriteFontFace5* This,UINT16 glyph,UINT32 ppem_first,UINT32 ppem_last,DWRITE_GLYPH_IMAGE_FORMATS *formats) {
  77. + return This->lpVtbl->GetGlyphImageFormats(This,glyph,ppem_first,ppem_last,formats);
  78. }
  79. static FORCEINLINE DWRITE_GLYPH_IMAGE_FORMATS IDWriteFontFace5_GetGlyphImageFormats(IDWriteFontFace5* This) {
  80. return This->lpVtbl->GetGlyphImageFormats(This);