mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
4fd206adba
commit
7129b3e14d
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue