Merge to XFA: Remove typdefs for pointer types in fx_system.h.
[pdfium.git] / xfa / src / fxgraphics / src / fx_graphics.cpp
index ee746b7..a915a17 100644 (file)
@@ -755,7 +755,7 @@ FX_ERR      CFX_Graphics::InverseRect(const CFX_RectF & rect)
             FX_ARGB c = *pLine;\r
             *pLine ++ = (c & 0xFF000000) | (0xFFFFFF - (c & 0x00FFFFFF));\r
         }\r
-        pBuf = (FX_ARGB*)((FX_LPBYTE)pBuf + bitmap->GetPitch());\r
+        pBuf = (FX_ARGB*)((uint8_t*)pBuf + bitmap->GetPitch());\r
     }\r
     return FX_ERR_Succeeded;\r
 }\r
@@ -784,8 +784,8 @@ FX_ERR CFX_Graphics::XorDIBitmap(const CFX_DIBitmap * srcBitmap, const CFX_RectF
             *pDstLine ++ = ArgbEncode(FXARGB_A(c), (c & 0xFFFFFF) ^ (*pSrcLine & 0xFFFFFF));\r
             pSrcLine ++;\r
         }\r
-        pSrcBuf = (FX_ARGB*)((FX_LPBYTE)pSrcBuf + srcBitmap->GetPitch());\r
-        pDstBuf = (FX_ARGB*)((FX_LPBYTE)pDstBuf + dst->GetPitch());\r
+        pSrcBuf = (FX_ARGB*)((uint8_t*)pSrcBuf + srcBitmap->GetPitch());\r
+        pDstBuf = (FX_ARGB*)((uint8_t*)pDstBuf + dst->GetPitch());\r
     }\r
     return FX_ERR_Succeeded;\r
 }\r
@@ -814,8 +814,8 @@ FX_ERR CFX_Graphics::EqvDIBitmap(const CFX_DIBitmap * srcBitmap, const CFX_RectF
             *pDstLine ++ = ArgbEncode(FXARGB_A(c), ~((c & 0xFFFFFF) ^ (*pSrcLine & 0xFFFFFF)));\r
             pSrcLine ++;\r
         }\r
-        pSrcBuf = (FX_ARGB*)((FX_LPBYTE)pSrcBuf + srcBitmap->GetPitch());\r
-        pDstBuf = (FX_ARGB*)((FX_LPBYTE)pDstBuf + dst->GetPitch());\r
+        pSrcBuf = (FX_ARGB*)((uint8_t*)pSrcBuf + srcBitmap->GetPitch());\r
+        pDstBuf = (FX_ARGB*)((uint8_t*)pDstBuf + dst->GetPitch());\r
     }\r
     return FX_ERR_Succeeded;\r
 }\r