dwrite/layout: Remove unnecessary argument check from GetPairKerning().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-02-19 12:03:46 +03:00 committed by Alexandre Julliard
parent 4fd206adba
commit 7129b3e14d
2 changed files with 1 additions and 5 deletions

View file

@ -4062,9 +4062,6 @@ static HRESULT WINAPI dwritetextlayout1_GetPairKerning(IDWriteTextLayout4 *iface
TRACE("%p, %u, %p, %p.\n", iface, position, is_pairkerning_enabled, r);
if (position >= layout->len)
return S_OK;
range = get_layout_range_by_pos(layout, position);
*is_pairkerning_enabled = range->pair_kerning;

View file

@ -6337,11 +6337,10 @@ todo_wine
value = FALSE;
hr = IDWriteTextLayout1_GetPairKerning(layout1, 10, &value, &range);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
todo_wine {
ok(range.startPosition == 10 && range.length == ~0u - 10, "Unexpected range (%u, %u).\n",
range.startPosition, range.length);
ok(!!value, "Unexpected value %d.\n", value);
}
range.startPosition = 0;
range.length = ~0u;
hr = IDWriteTextLayout1_SetPairKerning(layout1, FALSE, range);