diff options
Diffstat (limited to 'devel/electron33/files/patch-ui_gfx_font__render__params.h')
-rw-r--r-- | devel/electron33/files/patch-ui_gfx_font__render__params.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron33/files/patch-ui_gfx_font__render__params.h b/devel/electron33/files/patch-ui_gfx_font__render__params.h new file mode 100644 index 000000000000..90e059e8716d --- /dev/null +++ b/devel/electron33/files/patch-ui_gfx_font__render__params.h @@ -0,0 +1,20 @@ +--- ui/gfx/font_render_params.h.orig 2024-04-15 20:34:30 UTC ++++ ui/gfx/font_render_params.h +@@ -115,7 +115,7 @@ GFX_EXPORT FontRenderParams GetFontRenderParams( + const FontRenderParamsQuery& query, + std::string* family_out); + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are + // changing Fontconfig's configuration. + GFX_EXPORT void ClearFontRenderParamsCacheForTest(); +@@ -125,7 +125,7 @@ GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor( + GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ +- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) ++ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) + // Sets the device scale factor for FontRenderParams to decide + // if it should enable subpixel positioning. + GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( |