Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fwl / src / basewidget / fwl_barcodeimp.cpp
index 8ac141a..cc7ffd9 100644 (file)
@@ -113,7 +113,7 @@ FWL_ERR CFWL_BarcodeImp::DrawWidget(CFX_Graphics *pGraphics, const CFX_Matrix *p
         if (pMatrix) {\r
             mt.Concat(*pMatrix);\r
         }\r
-        FX_INT32 errorCode = 0;\r
+        int32_t errorCode = 0;\r
         _FWL_RETURN_VALUE_IF_FAIL(m_pBarcodeEngine->RenderDevice(pGraphics->GetRenderDevice(), pMatrix, errorCode), FWL_ERR_Indefinite);\r
         return FWL_ERR_Succeeded;\r
     }\r
@@ -147,8 +147,8 @@ void CFWL_BarcodeImp::GenerateBarcodeImageCache()
     if(pFontColor) {\r
         m_pBarcodeEngine->SetFontColor(*pFontColor);\r
     }\r
-    m_pBarcodeEngine->SetHeight(FX_INT32(m_rtClient.height));\r
-    m_pBarcodeEngine->SetWidth(FX_INT32(m_rtClient.width));\r
+    m_pBarcodeEngine->SetHeight(int32_t(m_rtClient.height));\r
+    m_pBarcodeEngine->SetWidth(int32_t(m_rtClient.width));\r
     FX_DWORD dwAttributeMask = pData->GetBarcodeAttributeMask();\r
     if (dwAttributeMask & FWL_BCDATTRIBUTE_CHARENCODING)       {\r
         m_pBarcodeEngine->SetCharEncoding                      (pData->GetCharEncoding());\r
@@ -189,7 +189,7 @@ void CFWL_BarcodeImp::GenerateBarcodeImageCache()
     if (dwAttributeMask & FWL_BCDATTRIBUTE_TRUNCATED) {\r
         m_pBarcodeEngine->SetTruncated                         (pData->GetTruncated());\r
     }\r
-    FX_INT32 errorCode = 0;\r
+    int32_t errorCode = 0;\r
     m_dwStatus = m_pBarcodeEngine->Encode(wsText, TRUE, errorCode) ? XFA_BCS_EncodeSuccess : 0;\r
 }\r
 void CFWL_BarcodeImp::CreateBarcodeEngine()\r