Lines 1227-1233
Link Here
|
1227 |
aBulletPos.X() = rStartPos.X() - aBulletArea.Bottom(); |
1227 |
aBulletPos.X() = rStartPos.X() - aBulletArea.Bottom(); |
1228 |
aBulletPos.Y() = rStartPos.Y() + aBulletArea.Left(); |
1228 |
aBulletPos.Y() = rStartPos.Y() + aBulletArea.Left(); |
1229 |
} |
1229 |
} |
1230 |
((GraphicObject*)pFmt->GetBrush()->GetGraphicObject())->Draw( pOutDev, aBulletPos, pPara->aBulSize ); |
1230 |
GraphicAttr aAttr( pFmt->GetBrush()->GetGraphicObject()->GetAttr() ); |
|
|
1231 |
if ( nOrientation ) |
1232 |
{ |
1233 |
double nRealOrientation = nOrientation*F_PI1800; |
1234 |
double nCos = cos( nRealOrientation ); |
1235 |
double nSin = sin( nRealOrientation ); |
1236 |
Point aRotatedPos; |
1237 |
aBulletPos -= rOrigin; |
1238 |
aRotatedPos.X()=(long) (nCos*aBulletPos.X() + nSin*aBulletPos.Y()); |
1239 |
aRotatedPos.Y()=(long) - (nSin*aBulletPos.X() - nCos*aBulletPos.Y()); |
1240 |
aBulletPos = aRotatedPos; |
1241 |
aBulletPos += rOrigin; |
1242 |
aAttr.SetRotation((sal_uInt16) nOrientation ); |
1243 |
} |
1244 |
((GraphicObject*)pFmt->GetBrush()->GetGraphicObject())->Draw( pOutDev, aBulletPos, pPara->aBulSize, &aAttr ); |
1231 |
} |
1245 |
} |
1232 |
} |
1246 |
} |
1233 |
} |
1247 |
} |