Chromium Code Reviews| Index: core/fxge/win32/fx_win32_gdipext.cpp |
| diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp |
| index ce181bb44889db532466ac82651b11176d1dd10e..2fdfa3a8c760f4013dbf84982f871001ff48f19f 100644 |
| --- a/core/fxge/win32/fx_win32_gdipext.cpp |
| +++ b/core/fxge/win32/fx_win32_gdipext.cpp |
| @@ -982,7 +982,7 @@ static GpPen* _GdipCreatePen(const CFX_GraphStateData* pGraphState, |
| } |
| GpPen* pPen = NULL; |
| CallFunc(GdipCreatePen1)((ARGB)argb, width, UnitWorld, &pPen); |
| - LineCap lineCap; |
| + LineCap lineCap = LineCapFlat; |
| DashCap dashCap = DashCapFlat; |
| FX_BOOL bDashExtend = FALSE; |
| switch (pGraphState->m_LineCap) { |
| @@ -1000,7 +1000,7 @@ static GpPen* _GdipCreatePen(const CFX_GraphStateData* pGraphState, |
| break; |
| } |
| CallFunc(GdipSetPenLineCap197819)(pPen, lineCap, lineCap, dashCap); |
| - LineJoin lineJoin; |
| + LineJoin lineJoin = LineJoinMiterClipped; |
| switch (pGraphState->m_LineJoin) { |
|
Tom Sepez
2016/03/16 18:34:59
again, using an enum might prove coverage.
Wei Li
2016/03/17 02:24:06
Start to feel too many false alarms? :)
Tom Sepez
2016/03/17 16:40:05
Acknowledged.
|
| case CFX_GraphStateData::LineJoinMiter: |
| lineJoin = LineJoinMiterClipped; |