Module: wine Branch: master Commit: d974a4b29fcca4220da472511c5d632a595e620d URL: http://source.winehq.org/git/wine.git/?a=commit;h=d974a4b29fcca4220da472511c...
Author: Hans Leidekker hans@codeweavers.com Date: Sat Nov 21 13:08:08 2009 +0100
usp10: Add a stub implementation of ScriptJustify.
---
dlls/usp10/usp10.c | 11 +++++++++++ dlls/usp10/usp10.spec | 2 +- 2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 16f575b..aefe6cc 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -1828,3 +1828,14 @@ HRESULT WINAPI ScriptApplyLogicalWidth(const int *dx, int num_chars, int num_gly for (i = 0; i < num_chars; i++) justify[i] = advance[i]; return S_OK; } + +HRESULT WINAPI ScriptJustify(const SCRIPT_VISATTR *sva, const int *advance, + int num_glyphs, int dx, int min_kashida, int *justify) +{ + int i; + + FIXME("(%p, %p, %d, %d, %d, %p)\n", sva, advance, num_glyphs, dx, min_kashida, justify); + + for (i = 0; i < num_glyphs; i++) justify[i] = advance[i]; + return S_OK; +} diff --git a/dlls/usp10/usp10.spec b/dlls/usp10/usp10.spec index 54137f2..5e35870 100644 --- a/dlls/usp10/usp10.spec +++ b/dlls/usp10/usp10.spec @@ -12,7 +12,7 @@ @ stdcall ScriptGetProperties(ptr long) @ stdcall ScriptIsComplex(wstr long long) @ stdcall ScriptItemize(wstr long long ptr ptr ptr ptr) -@ stub ScriptJustify +@ stdcall ScriptJustify(ptr ptr long long long ptr) @ stdcall ScriptLayout(long ptr ptr ptr) @ stdcall ScriptPlace(ptr ptr ptr long ptr ptr ptr ptr ptr) @ stdcall ScriptRecordDigitSubstitution(ptr ptr)