Re: [1/2] DWrite: Implemented functions regarding text alignment. (try 3)
31 May
2013
31 May
'13
1:17 p.m.
On Fri, May 31, 2013 at 9:07 PM, Fabian Müntefering <Cookiezzz97(a)gmx.de>wrote:
Implemented functions of text format and text layout regarding text alignment.
Try 3: Used proper enum value to set the enum variables.
+ if(alignment!=DWRITE_TEXT_ALIGNMENT_CENTER && alignment!=DWRITE_TEXT_ALIGNMENT_LEADING && + alignment!=DWRITE_TEXT_ALIGNMENT_JUSTIFIED && alignment!=DWRITE_TEXT_ALIGNMENT_TRAILING) + return E_INVALIDARG; + This->format.text_align = alignment; This doesn't look great, you'll need a test that shows it really rejects meaningless values, and if it does it would be simpler to compare with greatest enum value.
4577
Age (days ago)
4577
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov