#i105655# commiting changes so far for preparing linux version

This commit is contained in:
Armin Le Grand
2009-10-14 13:55:31 +02:00
parent f678fbae66
commit 727411be78
14 changed files with 303 additions and 58 deletions

View File

@@ -275,10 +275,25 @@ namespace
(getState( rParms.mrStates ).mapModeTransform * aWidth).getX();
// setup reasonable defaults
o_rStrokeAttributes.MiterLimit = 1.0;
o_rStrokeAttributes.MiterLimit = 15.0; // 1.0 was no good default; GDI+'s limit is 10.0, our's is 15.0
o_rStrokeAttributes.StartCapType = rendering::PathCapType::BUTT;
o_rStrokeAttributes.EndCapType = rendering::PathCapType::BUTT;
o_rStrokeAttributes.JoinType = rendering::PathJoinType::MITER;
switch(rLineInfo.GetLineJoin())
{
default: // B2DLINEJOIN_NONE, B2DLINEJOIN_MIDDLE
o_rStrokeAttributes.JoinType = rendering::PathJoinType::NONE;
break;
case basegfx::B2DLINEJOIN_BEVEL:
o_rStrokeAttributes.JoinType = rendering::PathJoinType::BEVEL;
break;
case basegfx::B2DLINEJOIN_MITER:
o_rStrokeAttributes.JoinType = rendering::PathJoinType::MITER;
break;
case basegfx::B2DLINEJOIN_ROUND:
o_rStrokeAttributes.JoinType = rendering::PathJoinType::ROUND;
break;
}
if( LINE_DASH == rLineInfo.GetStyle() )
{