Commit 67bd390a authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander Trofimov

Границы emf теперь возвращаются в пикселах, а не во внутренних единицах метафайла, как раньше.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63157 954022d7-b5bf-4e40-9824-e11837661b57
parent 3a0d3dc6
......@@ -29,7 +29,8 @@ namespace MetaFile
TEmfRectL* GetBounds()
{
return &m_oHeader.oFrame;
//return &m_oHeader.oFrame;
return &m_oHeader.oFramePx;
}
void PlayMetaFile()
{
......@@ -691,6 +692,8 @@ namespace MetaFile
m_oHeader.oFrameToBounds.nRight = nR;
m_oHeader.oFrameToBounds.nTop = nT;
m_oHeader.oFrameToBounds.nBottom = nB;
m_oHeader.oFramePx = m_oHeader.oFrameToBounds;
}
void Read_EMR_ALPHABLEND()
{
......
......@@ -257,10 +257,25 @@ namespace MetaFile
struct TEmfRectL
{
TEmfRectL()
{
lLeft = 0;
lTop = 0;
lRight = 0;
lBottom = 0;
}
TEmfRectL(const TRect& oRect)
{
lLeft = oRect.nLeft;
lTop = oRect.nTop;
lRight = oRect.nRight;
lBottom = oRect.nBottom;
}
int lLeft;
int lTop;
int lRight;
int lBottom;
int lBottom;
};
struct TEmfPointL
......@@ -311,6 +326,7 @@ namespace MetaFile
TEmfSizeL oDevice;
TEmfSizeL oMillimeters;
TRect oFrameToBounds;
TEmfRectL oFramePx;
};
struct TEmfStretchDIBITS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment