[PATCH 2/2] dwrite: Store text format properties
Nikolay Sivov
bunglehead at gmail.com
Mon Apr 7 01:03:19 CDT 2014
On 4/7/2014 09:29, Dmitry Timoshkov wrote:
> Nikolay Sivov <nsivov at codeweavers.com> wrote:
>
>> +static HRESULT WINAPI dwritetextformat_SetLineSpacing(IDWriteTextFormat *iface, DWRITE_LINE_SPACING_METHOD method,
>> + FLOAT spacing, FLOAT baseline)
>> {
>> struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
>> - FIXME("(%p)->(%d %f %f): stub\n", This, spacing, line_spacing, baseline);
>> - return E_NOTIMPL;
>> + TRACE("(%p)->(%d %f %f)\n", This, method, spacing, baseline);
>> + This->format.spacingmethod = method;
>> + This->format.spacing = spacing;
>> + This->format.baseline = baseline;
>> + return S_OK;
>> }
> Probably all the format properties setters should handle invalid enum or
> negative floating point arguments some way.
>
It's too early to care about that at this point.
More information about the wine-devel
mailing list