Update release

This commit is contained in:
Zihan Chen
2018-07-06 06:46:25 -07:00
parent 6b5c8ab9e2
commit 5b4012c705
49 changed files with 679 additions and 468 deletions
+2 -1
View File
@@ -484,6 +484,7 @@ WindowsDirect2DParagraph (Initialization)
if(!FAILED(hr))
{
textLayout=rawTextLayout;
textLayout->SetMaxWidth(65536);
textLayout->SetWordWrapping(DWRITE_WORD_WRAPPING_WRAP);
}
graphicsElements.Add(TextRange(0, _text.Length()), 0);
@@ -4277,7 +4278,7 @@ WindowsGDIParagraph
Rect caretBounds=GetCaretBounds(caret, caretFrontSide);
vint x=caretBounds.x1+bounds.x1;
vint y1=caretBounds.y1+bounds.y1;
vint y2=y1+caretBounds.Height();
vint y2=y1+(vint)(caretBounds.Height()*1.5);
WinDC* dc=renderTarget->GetDC();
dc->SetPen(caretPen);