Module: wine Branch: master Commit: 44b30c42cbb231e3ea54a47f6ecc19e641e5f889 URL: https://source.winehq.org/git/wine.git/?a=commit;h=44b30c42cbb231e3ea54a47f6...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed May 19 17:34:07 2021 +0300
dwrite/layout: Remove duplicated helper.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dwrite/layout.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c index 48741bf0847..26744e1b303 100644 --- a/dlls/dwrite/layout.c +++ b/dlls/dwrite/layout.c @@ -1471,11 +1471,6 @@ static inline IUnknown *layout_get_effect_from_pos(struct dwrite_textlayout *lay return ((struct layout_range_iface*)h)->iface; }
-static inline BOOL layout_is_erun_rtl(const struct layout_effective_run *erun) -{ - return erun->run->u.regular.run.bidiLevel & 1; -} - /* A set of parameters that additionally splits resulting runs. It happens after shaping and all text processing, no glyph changes are possible. It's understandable for drawing effects, because DrawGlyphRun() reports them as one of the arguments, but it also happens for decorations, so every effective run has uniform @@ -1594,7 +1589,7 @@ static HRESULT layout_add_effective_run(struct dwrite_textlayout *layout, const
/* Check if run direction matches paragraph direction, if it doesn't adjust by run width */ - if (layout_is_erun_rtl(run) ^ is_rtl) + if (is_run_rtl(run) ^ is_rtl) run->origin.x = is_rtl ? origin_x - run->width : origin_x + run->width; else run->origin.x = origin_x;