Index: xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.cpp |
diff --git a/xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.cpp b/xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.cpp |
index d4f90a570f03a3135e68d9b8462e1effdf59f31a..e66df054454a7013d3115530371761d62053d417 100644 |
--- a/xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.cpp |
+++ b/xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.cpp |
@@ -217,7 +217,7 @@ void CBC_OnedEAN13Writer::ShowChars(const CFX_WideStringC& contents, |
} |
CalcTextInfo(tempStr, pCharPos + 1, m_pFont, (FX_FLOAT)strWidth, iFontSize, |
blank); |
- CFX_AffineMatrix affine_matrix(1.0, 0.0, 0.0, -1.0, 0.0, (FX_FLOAT)iFontSize); |
+ CFX_Matrix affine_matrix(1.0, 0.0, 0.0, -1.0, 0.0, (FX_FLOAT)iFontSize); |
CFX_FxgeDevice ge; |
if (pOutBitmap != NULL) { |
ge.Create(strWidth, iTextHeight, FXDIB_Argb); |
@@ -225,20 +225,20 @@ void CBC_OnedEAN13Writer::ShowChars(const CFX_WideStringC& contents, |
ge.FillRect(&rect, m_backgroundColor); |
ge.DrawNormalText(iLen, pCharPos + 1, m_pFont, |
CFX_GEModule::Get()->GetFontCache(), (FX_FLOAT)iFontSize, |
- (CFX_AffineMatrix*)&affine_matrix, m_fontColor, |
+ (CFX_Matrix*)&affine_matrix, m_fontColor, |
FXTEXT_CLEARTYPE); |
geBitmap.SetDIBits(ge.GetBitmap(), leftPosition, m_Height - iTextHeight); |
} else { |
- CFX_AffineMatrix affine_matrix1( |
- 1.0, 0.0, 0.0, -1.0, (FX_FLOAT)leftPosition * m_outputHScale, |
- (FX_FLOAT)(m_Height - iTextHeight) + iFontSize); |
+ CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0, |
+ (FX_FLOAT)leftPosition * m_outputHScale, |
+ (FX_FLOAT)(m_Height - iTextHeight) + iFontSize); |
if (matrix != NULL) { |
affine_matrix1.Concat(*matrix); |
} |
- device->DrawNormalText( |
- iLen, pCharPos + 1, m_pFont, CFX_GEModule::Get()->GetFontCache(), |
- (FX_FLOAT)iFontSize, (CFX_AffineMatrix*)&affine_matrix1, m_fontColor, |
- FXTEXT_CLEARTYPE); |
+ device->DrawNormalText(iLen, pCharPos + 1, m_pFont, |
+ CFX_GEModule::Get()->GetFontCache(), |
+ (FX_FLOAT)iFontSize, (CFX_Matrix*)&affine_matrix1, |
+ m_fontColor, FXTEXT_CLEARTYPE); |
} |
tempStr = str.Mid(7, 6); |
iLen = tempStr.GetLength(); |
@@ -250,22 +250,22 @@ void CBC_OnedEAN13Writer::ShowChars(const CFX_WideStringC& contents, |
ge.FillRect(&rect1, m_backgroundColor); |
ge.DrawNormalText(iLen, pCharPos + 7, m_pFont, |
CFX_GEModule::Get()->GetFontCache(), (FX_FLOAT)iFontSize, |
- (CFX_AffineMatrix*)&affine_matrix, m_fontColor, |
+ (CFX_Matrix*)&affine_matrix, m_fontColor, |
FXTEXT_CLEARTYPE); |
geBitmap.SetDIBits(ge.GetBitmap(), leftPosition + 47 * multiple, |
m_Height - iTextHeight); |
} else { |
- CFX_AffineMatrix affine_matrix1( |
+ CFX_Matrix affine_matrix1( |
1.0, 0.0, 0.0, -1.0, |
(FX_FLOAT)(leftPosition + 47 * multiple) * m_outputHScale, |
(FX_FLOAT)(m_Height - iTextHeight + iFontSize)); |
if (matrix != NULL) { |
affine_matrix1.Concat(*matrix); |
} |
- device->DrawNormalText( |
- iLen, pCharPos + 7, m_pFont, CFX_GEModule::Get()->GetFontCache(), |
- (FX_FLOAT)iFontSize, (CFX_AffineMatrix*)&affine_matrix1, m_fontColor, |
- FXTEXT_CLEARTYPE); |
+ device->DrawNormalText(iLen, pCharPos + 7, m_pFont, |
+ CFX_GEModule::Get()->GetFontCache(), |
+ (FX_FLOAT)iFontSize, (CFX_Matrix*)&affine_matrix1, |
+ m_fontColor, FXTEXT_CLEARTYPE); |
} |
tempStr = str.Mid(0, 1); |
iLen = tempStr.GetLength(); |
@@ -281,20 +281,19 @@ void CBC_OnedEAN13Writer::ShowChars(const CFX_WideStringC& contents, |
ge.GetBitmap()->Clear(m_backgroundColor); |
ge.DrawNormalText(iLen, pCharPos, m_pFont, |
CFX_GEModule::Get()->GetFontCache(), (FX_FLOAT)iFontSize, |
- (CFX_AffineMatrix*)&affine_matrix, m_fontColor, |
+ (CFX_Matrix*)&affine_matrix, m_fontColor, |
FXTEXT_CLEARTYPE); |
geBitmap.SetDIBits(ge.GetBitmap(), 0, m_Height - iTextHeight); |
} else { |
- CFX_AffineMatrix affine_matrix1( |
- 1.0, 0.0, 0.0, -1.0, 0.0, |
- (FX_FLOAT)(m_Height - iTextHeight + iFontSize)); |
+ CFX_Matrix affine_matrix1(1.0, 0.0, 0.0, -1.0, 0.0, |
+ (FX_FLOAT)(m_Height - iTextHeight + iFontSize)); |
if (matrix != NULL) { |
affine_matrix1.Concat(*matrix); |
} |
- device->DrawNormalText( |
- iLen, pCharPos, m_pFont, CFX_GEModule::Get()->GetFontCache(), |
- (FX_FLOAT)iFontSize, (CFX_AffineMatrix*)&affine_matrix1, m_fontColor, |
- FXTEXT_CLEARTYPE); |
+ device->DrawNormalText(iLen, pCharPos, m_pFont, |
+ CFX_GEModule::Get()->GetFontCache(), |
+ (FX_FLOAT)iFontSize, (CFX_Matrix*)&affine_matrix1, |
+ m_fontColor, FXTEXT_CLEARTYPE); |
} |
FX_Free(pCharPos); |
} |