summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
Diffstat (limited to 'core/include')
-rw-r--r--core/include/fpdfdoc/fpdf_doc.h36
-rw-r--r--core/include/fpdfdoc/fpdf_tagged.h14
-rw-r--r--core/include/fxcodec/fx_codec.h130
-rw-r--r--core/include/fxge/fpf.h10
-rw-r--r--core/include/fxge/fx_dib.h84
-rw-r--r--core/include/fxge/fx_font.h94
-rw-r--r--core/include/fxge/fx_ge.h80
-rw-r--r--core/include/fxge/fx_ge_win32.h4
8 files changed, 226 insertions, 226 deletions
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index 28d62effd4..87d1662c81 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -85,8 +85,8 @@ class CPDF_Bookmark {
explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {}
CPDF_Dictionary* GetDict() const { return m_pDict; }
- FX_DWORD GetColorRef() const;
- FX_DWORD GetFontStyle() const;
+ uint32_t GetColorRef() const;
+ uint32_t GetFontStyle() const;
CFX_WideString GetTitle() const;
CPDF_Dest GetDest(CPDF_Document* pDocument) const;
CPDF_Action GetAction() const;
@@ -111,7 +111,7 @@ class CPDF_Dest {
CPDF_Object* GetObject() const { return m_pObj; }
CFX_ByteString GetRemoteName();
int GetPageIndex(CPDF_Document* pDoc);
- FX_DWORD GetPageObjNum();
+ uint32_t GetPageObjNum();
int GetZoomMode();
FX_FLOAT GetParam(int index);
@@ -154,9 +154,9 @@ class CPDF_ActionFields {
public:
explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {}
- FX_DWORD GetFieldsCount() const;
+ uint32_t GetFieldsCount() const;
std::vector<CPDF_Object*> GetAllFields() const;
- CPDF_Object* GetField(FX_DWORD iIndex) const;
+ CPDF_Object* GetField(uint32_t iIndex) const;
protected:
const CPDF_Action* const m_pAction;
@@ -204,7 +204,7 @@ class CPDF_Action {
FX_BOOL GetMouseMap() const { return m_pDict->GetBooleanBy("IsMap"); }
FX_BOOL GetHideStatus() const { return m_pDict->GetBooleanBy("H", TRUE); }
CFX_ByteString GetNamedAction() const { return m_pDict->GetStringBy("N"); }
- FX_DWORD GetFlags() const { return m_pDict->GetIntegerBy("Flags"); }
+ uint32_t GetFlags() const { return m_pDict->GetIntegerBy("Flags"); }
CFX_WideString GetJavaScript() const;
CPDF_Dictionary* GetAnnot() const;
int32_t GetOperationType() const;
@@ -213,8 +213,8 @@ class CPDF_Action {
FX_BOOL IsSynchronous() const { return m_pDict->GetBooleanBy("Synchronous"); }
FX_BOOL IsRepeat() const { return m_pDict->GetBooleanBy("Repeat"); }
FX_BOOL IsMixPlay() const { return m_pDict->GetBooleanBy("Mix"); }
- FX_DWORD GetSubActionsCount() const;
- CPDF_Action GetSubAction(FX_DWORD iIndex) const;
+ uint32_t GetSubActionsCount() const;
+ CPDF_Action GetSubAction(uint32_t iIndex) const;
protected:
CPDF_Dictionary* const m_pDict;
@@ -306,7 +306,7 @@ class CPDF_LinkList {
const std::vector<CPDF_Dictionary*>* GetPageLinks(CPDF_Page* pPage);
void LoadPageLinks(CPDF_Page* pPage, std::vector<CPDF_Dictionary*>* pList);
- std::map<FX_DWORD, std::vector<CPDF_Dictionary*>> m_PageMap;
+ std::map<uint32_t, std::vector<CPDF_Dictionary*>> m_PageMap;
};
class CPDF_Link {
@@ -342,7 +342,7 @@ class CPDF_Annot : public CFX_PrivateData {
~CPDF_Annot();
CFX_ByteString GetSubType() const;
- FX_DWORD GetFlags() const;
+ uint32_t GetFlags() const;
void GetRect(CFX_FloatRect& rect) const;
const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; }
CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; }
@@ -388,7 +388,7 @@ class CPDF_AnnotList {
CPDF_RenderContext* pContext,
FX_BOOL bPrinting,
CFX_Matrix* pMatrix,
- FX_DWORD dwAnnotFlags,
+ uint32_t dwAnnotFlags,
CPDF_RenderOptions* pOptions,
FX_RECT* pClipRect);
size_t Count() const { return m_AnnotList.size(); }
@@ -487,9 +487,9 @@ class CPDF_InterForm : public CFX_PrivateData {
FX_BOOL ValidateFieldName(const CPDF_FormControl* pControl,
CFX_WideString& csNewFieldName);
- FX_DWORD CountFields(const CFX_WideString& csFieldName = L"");
+ uint32_t CountFields(const CFX_WideString& csFieldName = L"");
- CPDF_FormField* GetField(FX_DWORD index,
+ CPDF_FormField* GetField(uint32_t index,
const CFX_WideString& csFieldName = L"");
CPDF_FormField* GetFieldByDict(CPDF_Dictionary* pFieldDict) const;
@@ -515,9 +515,9 @@ class CPDF_InterForm : public CFX_PrivateData {
int FindFieldInCalculationOrder(const CPDF_FormField* pField);
- FX_DWORD CountFormFonts();
+ uint32_t CountFormFonts();
- CPDF_Font* GetFormFont(FX_DWORD index, CFX_ByteString& csNameTag);
+ CPDF_Font* GetFormFont(uint32_t index, CFX_ByteString& csNameTag);
CPDF_Font* GetFormFont(CFX_ByteString csNameTag);
@@ -663,7 +663,7 @@ class CPDF_FormField {
CFX_WideString GetFullName();
Type GetType() const { return m_Type; }
- FX_DWORD GetFlags() const { return m_Flags; }
+ uint32_t GetFlags() const { return m_Flags; }
CPDF_Dictionary* GetFieldDict() const { return m_pDict; }
void SetFieldDict(CPDF_Dictionary* pDict) { m_pDict = pDict; }
@@ -684,7 +684,7 @@ class CPDF_FormField {
CFX_WideString GetMappingName();
- FX_DWORD GetFieldFlags();
+ uint32_t GetFieldFlags();
CFX_ByteString GetDefaultStyle();
@@ -781,7 +781,7 @@ class CPDF_FormField {
FX_BOOL bNotify);
CPDF_FormField::Type m_Type;
- FX_DWORD m_Flags;
+ uint32_t m_Flags;
CPDF_InterForm* m_pForm;
CPDF_Dictionary* m_pDict;
CFX_ArrayTemplate<CPDF_FormControl*> m_ControlList;
diff --git a/core/include/fpdfdoc/fpdf_tagged.h b/core/include/fpdfdoc/fpdf_tagged.h
index 28fe84b41a..d17b724d53 100644
--- a/core/include/fpdfdoc/fpdf_tagged.h
+++ b/core/include/fpdfdoc/fpdf_tagged.h
@@ -37,21 +37,21 @@ struct CPDF_StructKid {
CPDF_Dictionary* m_pDict;
} m_Element;
struct {
- FX_DWORD m_PageObjNum;
+ uint32_t m_PageObjNum;
- FX_DWORD m_ContentId;
+ uint32_t m_ContentId;
} m_PageContent;
struct {
- FX_DWORD m_PageObjNum;
+ uint32_t m_PageObjNum;
- FX_DWORD m_ContentId;
+ uint32_t m_ContentId;
- FX_DWORD m_RefObjNum;
+ uint32_t m_RefObjNum;
} m_StreamContent;
struct {
- FX_DWORD m_PageObjNum;
+ uint32_t m_PageObjNum;
- FX_DWORD m_RefObjNum;
+ uint32_t m_RefObjNum;
} m_Object;
};
};
diff --git a/core/include/fxcodec/fx_codec.h b/core/include/fxcodec/fx_codec.h
index 99d4dbd849..a674eb7290 100644
--- a/core/include/fxcodec/fx_codec.h
+++ b/core/include/fxcodec/fx_codec.h
@@ -51,10 +51,10 @@ class CFX_DIBAttribute {
uint8_t m_strTime[20];
int32_t m_nGifLeft;
int32_t m_nGifTop;
- FX_DWORD* m_pGifLocalPalette;
- FX_DWORD m_nGifLocalPalNum;
+ uint32_t* m_pGifLocalPalette;
+ uint32_t m_nGifLocalPalNum;
int32_t m_nBmpCompressType;
- std::map<FX_DWORD, void*> m_Exif;
+ std::map<uint32_t, void*> m_Exif;
};
#endif // PDF_ENABLE_XFA
@@ -97,15 +97,15 @@ class ICodec_BasicModule {
public:
virtual ~ICodec_BasicModule() {}
virtual FX_BOOL RunLengthEncode(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
virtual FX_BOOL A85Encode(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
virtual ICodec_ScanlineDecoder* CreateRunLengthDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int width,
int height,
int nComps,
@@ -116,7 +116,7 @@ class ICodec_ScanlineDecoder {
public:
virtual ~ICodec_ScanlineDecoder() {}
- virtual FX_DWORD GetSrcOffset() = 0;
+ virtual uint32_t GetSrcOffset() = 0;
virtual void DownScale(int dest_width, int dest_height) = 0;
@@ -141,7 +141,7 @@ class ICodec_FlateModule {
public:
virtual ~ICodec_FlateModule() {}
virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int width,
int height,
int nComps,
@@ -150,36 +150,36 @@ class ICodec_FlateModule {
int Colors,
int BitsPerComponent,
int Columns) = 0;
- virtual FX_DWORD FlateOrLZWDecode(FX_BOOL bLZW,
+ virtual uint32_t FlateOrLZWDecode(FX_BOOL bLZW,
const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
FX_BOOL bEarlyChange,
int predictor,
int Colors,
int BitsPerComponent,
int Columns,
- FX_DWORD estimated_size,
+ uint32_t estimated_size,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
virtual FX_BOOL Encode(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int predictor,
int Colors,
int BitsPerComponent,
int Columns,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
virtual FX_BOOL Encode(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
};
class ICodec_FaxModule {
public:
virtual ~ICodec_FaxModule() {}
virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int width,
int height,
int K,
@@ -194,35 +194,35 @@ class ICodec_FaxModule {
int height,
int pitch,
uint8_t*& dest_buf,
- FX_DWORD& dest_size) = 0;
+ uint32_t& dest_size) = 0;
};
class ICodec_JpegModule {
public:
virtual ~ICodec_JpegModule() {}
virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int width,
int height,
int nComps,
FX_BOOL ColorTransform) = 0;
virtual FX_BOOL LoadInfo(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int& width,
int& height,
int& num_components,
int& bits_per_components,
FX_BOOL& color_transform,
uint8_t** icc_buf_ptr = NULL,
- FX_DWORD* icc_length = NULL) = 0;
+ uint32_t* icc_length = NULL) = 0;
virtual FX_BOOL Encode(const class CFX_DIBSource* pSource,
uint8_t*& dest_buf,
FX_STRSIZE& dest_size,
int quality = 75,
const uint8_t* icc_buf = NULL,
- FX_DWORD icc_length = 0) = 0;
+ uint32_t icc_length = 0) = 0;
virtual void* Start() = 0;
@@ -230,7 +230,7 @@ class ICodec_JpegModule {
virtual void Input(void* pContext,
const uint8_t* src_buf,
- FX_DWORD src_size) = 0;
+ uint32_t src_size) = 0;
#ifdef PDF_ENABLE_XFA
virtual int ReadHeader(void* pContext,
@@ -249,7 +249,7 @@ class ICodec_JpegModule {
virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0;
- virtual FX_DWORD GetAvailInput(void* pContext,
+ virtual uint32_t GetAvailInput(void* pContext,
uint8_t** avail_buf_ptr = NULL) = 0;
};
@@ -258,13 +258,13 @@ class ICodec_JpxModule {
virtual ~ICodec_JpxModule() {}
virtual CJPX_Decoder* CreateDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
CPDF_ColorSpace* cs) = 0;
virtual void GetImageInfo(CJPX_Decoder* pDecoder,
- FX_DWORD* width,
- FX_DWORD* height,
- FX_DWORD* components) = 0;
+ uint32_t* width,
+ uint32_t* height,
+ uint32_t* components) = 0;
virtual bool Decode(CJPX_Decoder* pDecoder,
uint8_t* dest_data,
@@ -284,7 +284,7 @@ class ICodec_PngModule {
virtual FX_BOOL Input(void* pContext,
const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
CFX_DIBAttribute* pAttribute) = 0;
FX_BOOL (*ReadHeaderCallback)(void* pModule,
@@ -307,12 +307,12 @@ class ICodec_GifModule {
virtual void Finish(void* pContext) = 0;
- virtual FX_DWORD GetAvailInput(void* pContext,
+ virtual uint32_t GetAvailInput(void* pContext,
uint8_t** avail_buf_ptr = NULL) = 0;
virtual void Input(void* pContext,
const uint8_t* src_buf,
- FX_DWORD src_size) = 0;
+ uint32_t src_size) = 0;
virtual int32_t ReadHeader(void* pContext,
int* width,
@@ -324,7 +324,7 @@ class ICodec_GifModule {
virtual int32_t LoadFrameInfo(void* pContext, int* frame_num) = 0;
- void (*RecordCurrentPositionCallback)(void* pModule, FX_DWORD& cur_pos);
+ void (*RecordCurrentPositionCallback)(void* pModule, uint32_t& cur_pos);
uint8_t* (*AskLocalPaletteBufCallback)(void* pModule,
int32_t frame_num,
@@ -335,7 +335,7 @@ class ICodec_GifModule {
CFX_DIBAttribute* pAttribute) = 0;
FX_BOOL (*InputRecordPositionBufCallback)(void* pModule,
- FX_DWORD rcd_pos,
+ uint32_t rcd_pos,
const FX_RECT& img_rc,
int32_t pal_num,
void* pal_ptr,
@@ -357,12 +357,12 @@ class ICodec_BmpModule {
virtual void Finish(void* pContext) = 0;
- virtual FX_DWORD GetAvailInput(void* pContext,
+ virtual uint32_t GetAvailInput(void* pContext,
uint8_t** avail_buf_ptr = NULL) = 0;
virtual void Input(void* pContext,
const uint8_t* src_buf,
- FX_DWORD src_size) = 0;
+ uint32_t src_size) = 0;
virtual int32_t ReadHeader(void* pContext,
int32_t* width,
@@ -370,12 +370,12 @@ class ICodec_BmpModule {
FX_BOOL* tb_flag,
int32_t* components,
int* pal_num,
- FX_DWORD** pal_pp,
+ uint32_t** pal_pp,
CFX_DIBAttribute* pAttribute) = 0;
virtual int32_t LoadImage(void* pContext) = 0;
- FX_BOOL (*InputImagePositionBufCallback)(void* pModule, FX_DWORD rcd_pos);
+ FX_BOOL (*InputImagePositionBufCallback)(void* pModule, uint32_t rcd_pos);
void (*ReadScanlineCallback)(void* pModule,
int32_t row_num,
@@ -391,10 +391,10 @@ class ICodec_TiffModule {
virtual FX_BOOL LoadFrameInfo(void* ctx,
int32_t frame,
- FX_DWORD& width,
- FX_DWORD& height,
- FX_DWORD& comps,
- FX_DWORD& bpc,
+ uint32_t& width,
+ uint32_t& height,
+ uint32_t& comps,
+ uint32_t& bpc,
CFX_DIBAttribute* pAttribute) = 0;
virtual FX_BOOL Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) = 0;
@@ -411,12 +411,12 @@ class ICodec_Jbig2Module {
virtual FXCODEC_STATUS StartDecode(void* pJbig2Context,
CFX_PrivateData* pPrivateData,
- FX_DWORD width,
- FX_DWORD height,
+ uint32_t width,
+ uint32_t height,
CPDF_StreamAcc* src_stream,
CPDF_StreamAcc* global_stream,
uint8_t* dest_buf,
- FX_DWORD dest_pitch,
+ uint32_t dest_pitch,
IFX_Pause* pPause) = 0;
virtual FXCODEC_STATUS ContinueDecode(void* pJbig2Content,
@@ -477,12 +477,12 @@ class ICodec_IccModule {
};
struct IccParam {
- FX_DWORD Version;
+ uint32_t Version;
IccCS ColorSpace;
- FX_DWORD dwProfileType;
- FX_DWORD dwFormat;
+ uint32_t dwProfileType;
+ uint32_t dwFormat;
uint8_t* pProfileData;
- FX_DWORD dwProfileSize;
+ uint32_t dwProfileSize;
double Gamma;
};
@@ -497,27 +497,27 @@ class ICodec_IccModule {
ICodec_IccModule::IccParam* pInputParam,
ICodec_IccModule::IccParam* pOutputParam,
ICodec_IccModule::IccParam* pProofParam = NULL,
- FX_DWORD dwIntent = Icc_INTENT_PERCEPTUAL,
- FX_DWORD dwFlag = Icc_FLAGS_DEFAULT,
- FX_DWORD dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC,
- FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTPROOFING) = 0;
+ uint32_t dwIntent = Icc_INTENT_PERCEPTUAL,
+ uint32_t dwFlag = Icc_FLAGS_DEFAULT,
+ uint32_t dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC,
+ uint32_t dwPrfFlag = Icc_FLAGS_SOFTPROOFING) = 0;
virtual void* CreateTransform_sRGB(
const uint8_t* pProfileData,
- FX_DWORD dwProfileSize,
- FX_DWORD& nComponents,
+ uint32_t dwProfileSize,
+ uint32_t& nComponents,
int32_t intent = 0,
- FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT) = 0;
+ uint32_t dwSrcFormat = Icc_FORMAT_DEFAULT) = 0;
virtual void* CreateTransform_CMYK(
const uint8_t* pSrcProfileData,
- FX_DWORD dwSrcProfileSize,
- FX_DWORD& nSrcComponents,
+ uint32_t dwSrcProfileSize,
+ uint32_t& nSrcComponents,
const uint8_t* pDstProfileData,
- FX_DWORD dwDstProfileSize,
+ uint32_t dwDstProfileSize,
int32_t intent = 0,
- FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT,
- FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT) = 0;
+ uint32_t dwSrcFormat = Icc_FORMAT_DEFAULT,
+ uint32_t dwDstFormat = Icc_FORMAT_DEFAULT) = 0;
virtual void DestroyTransform(void* pTransform) = 0;
@@ -529,7 +529,7 @@ class ICodec_IccModule {
uint8_t* pDest,
const uint8_t* pSrc,
int pixels) = 0;
- virtual void SetComponents(FX_DWORD nComponents) = 0;
+ virtual void SetComponents(uint32_t nComponents) = 0;
};
void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels);
@@ -554,9 +554,9 @@ void AdobeCMYK_to_sRGB1(uint8_t c,
uint8_t& R,
uint8_t& G,
uint8_t& B);
-FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]);
+FX_BOOL MD5ComputeID(const void* buf, uint32_t dwSize, uint8_t ID[16]);
void FaxG4Decode(const uint8_t* src_buf,
- FX_DWORD src_size,
+ uint32_t src_size,
int* pbitpos,
uint8_t* dest_buf,
int width,
diff --git a/core/include/fxge/fpf.h b/core/include/fxge/fpf.h
index 6e596782cf..bc42a2dd95 100644
--- a/core/include/fxge/fpf.h
+++ b/core/include/fxge/fpf.h
@@ -31,7 +31,7 @@ class IFPF_Font {
virtual FPF_HFONT GetHandle() = 0;
virtual CFX_ByteString GetFamilyName() = 0;
virtual CFX_WideString GetPsName() = 0;
- virtual FX_DWORD GetFontStyle() const = 0;
+ virtual uint32_t GetFontStyle() const = 0;
virtual uint8_t GetCharset() const = 0;
virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0;
@@ -45,9 +45,9 @@ class IFPF_Font {
virtual int32_t GetHeight() const = 0;
virtual int32_t GetItalicAngle() const = 0;
- virtual FX_DWORD GetFontData(FX_DWORD dwTable,
+ virtual uint32_t GetFontData(uint32_t dwTable,
uint8_t* pBuffer,
- FX_DWORD dwSize) = 0;
+ uint32_t dwSize) = 0;
protected:
virtual ~IFPF_Font() {}
@@ -63,8 +63,8 @@ class IFPF_FontMgr {
virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname,
uint8_t charset,
- FX_DWORD dwStyle,
- FX_DWORD dwMatch = 0) = 0;
+ uint32_t dwStyle,
+ uint32_t dwMatch = 0) = 0;
};
#endif // CORE_INCLUDE_FXGE_FPF_H_
diff --git a/core/include/fxge/fx_dib.h b/core/include/fxge/fx_dib.h
index bc8954486d..09081786ef 100644
--- a/core/include/fxge/fx_dib.h
+++ b/core/include/fxge/fx_dib.h
@@ -60,9 +60,9 @@ enum FXDIB_Channel {
#define FXDIB_BLEND_COLOR 23
#define FXDIB_BLEND_LUMINOSITY 24
#define FXDIB_BLEND_UNSUPPORTED -1
-typedef FX_DWORD FX_ARGB;
-typedef FX_DWORD FX_COLORREF;
-typedef FX_DWORD FX_CMYK;
+typedef uint32_t FX_ARGB;
+typedef uint32_t FX_COLORREF;
+typedef uint32_t FX_CMYK;
class CFX_ClipRgn;
class CFX_DIBSource;
class CFX_DIBitmap;
@@ -93,7 +93,7 @@ FX_ARGB ArgbEncode(int a, FX_COLORREF rgb);
#define FXARGB_G(argb) ((uint8_t)((argb) >> 8))
#define FXARGB_B(argb) ((uint8_t)(argb))
#define FXARGB_MAKE(a, r, g, b) \
- (((FX_DWORD)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
+ (((uint32_t)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
#define FXARGB_MUL_ALPHA(argb, alpha) \
(((((argb) >> 24) * (alpha) / 255) << 24) | ((argb)&0xffffff))
#define FXRGB2GRAY(r, g, b) (((b)*11 + (g)*59 + (r)*30) / 100)
@@ -168,8 +168,8 @@ class CFX_DIBSource {
FXDIB_Format GetFormat() const {
return (FXDIB_Format)(m_AlphaFlag * 0x100 + m_bpp);
}
- FX_DWORD GetPitch() const { return m_Pitch; }
- FX_DWORD* GetPalette() const { return m_pPalette; }
+ uint32_t GetPitch() const { return m_Pitch; }
+ uint32_t* GetPalette() const { return m_pPalette; }
virtual uint8_t* GetBuffer() const;
virtual const uint8_t* GetScanline(int line) const = 0;
@@ -197,15 +197,15 @@ class CFX_DIBSource {
return IsAlphaMask() ? 0 : (m_bpp == 1 ? 2 : (m_bpp == 8 ? 256 : 0));
}
- FX_DWORD GetPaletteEntry(int index) const;
+ uint32_t GetPaletteEntry(int index) const;
- void SetPaletteEntry(int index, FX_DWORD color);
- FX_DWORD GetPaletteArgb(int index) const { return GetPaletteEntry(index); }
- void SetPaletteArgb(int index, FX_DWORD color) {
+ void SetPaletteEntry(int index, uint32_t color);
+ uint32_t GetPaletteArgb(int index) const { return GetPaletteEntry(index); }
+ void SetPaletteArgb(int index, uint32_t color) {
SetPaletteEntry(index, color);
}
- void CopyPalette(const FX_DWORD* pSrcPal, FX_DWORD size = 256);
+ void CopyPalette(const uint32_t* pSrcPal, uint32_t size = 256);
CFX_DIBitmap* Clone(const FX_RECT* pClip = NULL) const;
CFX_DIBitmap* CloneConvert(FXDIB_Format format,
@@ -214,12 +214,12 @@ class CFX_DIBSource {
CFX_DIBitmap* StretchTo(int dest_width,
int dest_height,
- FX_DWORD flags = 0,
+ uint32_t flags = 0,
const FX_RECT* pClip = NULL) const;
CFX_DIBitmap* TransformTo(const CFX_Matrix* pMatrix,
int& left,
int& top,
- FX_DWORD flags = 0,
+ uint32_t flags = 0,
const FX_RECT* pClip = NULL) const;
CFX_DIBitmap* GetAlphaMask(const FX_RECT* pClip = NULL) const;
@@ -250,14 +250,14 @@ class CFX_DIBSource {
int m_Width;
int m_Height;
int m_bpp;
- FX_DWORD m_AlphaFlag;
- FX_DWORD m_Pitch;
- FX_DWORD* m_pPalette;
+ uint32_t m_AlphaFlag;
+ uint32_t m_Pitch;
+ uint32_t* m_pPalette;
void BuildPalette();
FX_BOOL BuildAlphaMask();
- int FindPalette(FX_DWORD color) const;
- void GetPalette(FX_DWORD* pal, int alpha) const;
+ int FindPalette(uint32_t color) const;
+ void GetPalette(uint32_t* pal, int alpha) const;
};
class CFX_DIBitmap : public CFX_DIBSource {
public:
@@ -288,11 +288,11 @@ class CFX_DIBitmap : public CFX_DIBSource {
FX_BOOL ConvertFormat(FXDIB_Format format, void* pIccTransform = NULL);
- void Clear(FX_DWORD color);
+ void Clear(uint32_t color);
- FX_DWORD GetPixel(int x, int y) const;
+ uint32_t GetPixel(int x, int y) const;
- void SetPixel(int x, int y, FX_DWORD color);
+ void SetPixel(int x, int y, uint32_t color);
FX_BOOL LoadChannel(FXDIB_Channel destChannel,
const CFX_DIBSource* pSrcBitmap,
@@ -330,7 +330,7 @@ class CFX_DIBitmap : public CFX_DIBSource {
int width,
int height,
const CFX_DIBSource* pMask,
- FX_DWORD color,
+ uint32_t color,
int src_left,
int src_top,
int alpha_flag = 0,
@@ -341,7 +341,7 @@ class CFX_DIBitmap : public CFX_DIBSource {
int width,
int height,
const CFX_DIBSource* pMask,
- FX_DWORD color,
+ uint32_t color,
int src_left,
int src_top,
int blend_type = FXDIB_BLEND_NORMAL,
@@ -354,13 +354,13 @@ class CFX_DIBitmap : public CFX_DIBSource {
int dest_top,
int width,
int height,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL);
- FX_BOOL ConvertColorScale(FX_DWORD forecolor, FX_DWORD backcolor);
+ FX_BOOL ConvertColorScale(uint32_t forecolor, uint32_t backcolor);
- FX_BOOL DitherFS(const FX_DWORD* pPalette,
+ FX_BOOL DitherFS(const uint32_t* pPalette,
int pal_size,
const FX_RECT* pRect = NULL);
@@ -393,7 +393,7 @@ class CFX_FilteredDIB : public CFX_DIBSource {
virtual FXDIB_Format GetDestFormat() = 0;
- virtual FX_DWORD* GetDestPalette() = 0;
+ virtual uint32_t* GetDestPalette() = 0;
virtual void TranslateScanline(uint8_t* dest_buf,
const uint8_t* src_buf) const = 0;
@@ -432,7 +432,7 @@ class IFX_ScanlineComposer {
virtual FX_BOOL SetInfo(int width,
int height,
FXDIB_Format src_format,
- FX_DWORD* pSrcPalette) = 0;
+ uint32_t* pSrcPalette) = 0;
};
class CFX_ScanlineCompositor {
public:
@@ -443,8 +443,8 @@ class CFX_ScanlineCompositor {
FX_BOOL Init(FXDIB_Format dest_format,
FXDIB_Format src_format,
int32_t width,
- FX_DWORD* pSrcPalette,
- FX_DWORD mask_color,
+ uint32_t* pSrcPalette,
+ uint32_t mask_color,
int blend_type,
FX_BOOL bClip,
FX_BOOL bRgbByteOrder = FALSE,
@@ -482,7 +482,7 @@ class CFX_ScanlineCompositor {
protected:
int m_Transparency;
FXDIB_Format m_SrcFormat, m_DestFormat;
- FX_DWORD* m_pSrcPalette;
+ uint32_t* m_pSrcPalette;
int m_MaskAlpha, m_MaskRed, m_MaskGreen, m_MaskBlue, m_MaskBlack;
int m_BlendType;
@@ -500,7 +500,7 @@ class CFX_BitmapComposer : public IFX_ScanlineComposer {
void Compose(CFX_DIBitmap* pDest,
const CFX_ClipRgn* pClipRgn,
int bitmap_alpha,
- FX_DWORD mask_color,
+ uint32_t mask_color,
FX_RECT& dest_rect,
FX_BOOL bVertical,
FX_BOOL bFlipX,
@@ -514,7 +514,7 @@ class CFX_BitmapComposer : public IFX_ScanlineComposer {
FX_BOOL SetInfo(int width,
int height,
FXDIB_Format src_format,
- FX_DWORD* pSrcPalette) override;
+ uint32_t* pSrcPalette) override;
void ComposeScanline(int line,
const uint8_t* scanline,
@@ -531,7 +531,7 @@ class CFX_BitmapComposer : public IFX_ScanlineComposer {
const CFX_ClipRgn* m_pClipRgn;
FXDIB_Format m_SrcFormat;
int m_DestLeft, m_DestTop, m_DestWidth, m_DestHeight, m_BitmapAlpha;
- FX_DWORD m_MaskColor;
+ uint32_t m_MaskColor;
const CFX_DIBitmap* m_pClipMask;
CFX_ScanlineCompositor m_Compositor;
FX_BOOL m_bVertical, m_bFlipX, m_bFlipY;
@@ -561,7 +561,7 @@ class CFX_BitmapStorer : public IFX_ScanlineComposer {
FX_BOOL SetInfo(int width,
int height,
FXDIB_Format src_format,
- FX_DWORD* pSrcPalette) override;
+ uint32_t* pSrcPalette) override;
CFX_DIBitmap* GetBitmap() { return m_pBitmap; }
@@ -583,7 +583,7 @@ class CFX_ImageStretcher {
int dest_width,
int dest_height,
const FX_RECT& bitmap_rect,
- FX_DWORD flags);
+ uint32_t flags);
FX_BOOL Continue(IFX_Pause* pPause);
FX_BOOL StartQuickStretch();
@@ -594,7 +594,7 @@ class CFX_ImageStretcher {
IFX_ScanlineComposer* m_pDest;
const CFX_DIBSource* m_pSource;
CStretchEngine* m_pStretchEngine;
- FX_DWORD m_Flags;
+ uint32_t m_Flags;
FX_BOOL m_bFlipX;
FX_BOOL m_bFlipY;
int m_DestWidth;
@@ -627,7 +627,7 @@ class CFX_ImageTransformer {
CFX_Matrix m_dest2stretch;
CFX_ImageStretcher m_Stretcher;
CFX_BitmapStorer m_Storer;
- FX_DWORD m_Flags;
+ uint32_t m_Flags;
int m_Status;
};
class CFX_ImageRenderer {
@@ -639,9 +639,9 @@ class CFX_ImageRenderer {
const CFX_ClipRgn* pClipRgn,
const CFX_DIBSource* pSource,
int bitmap_alpha,
- FX_DWORD mask_color,
+ uint32_t mask_color,
const CFX_Matrix* pMatrix,
- FX_DWORD dib_flags,
+ uint32_t dib_flags,
FX_BOOL bRgbByteOrder = FALSE,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -653,14 +653,14 @@ class CFX_ImageRenderer {
CFX_DIBitmap* m_pDevice;
const CFX_ClipRgn* m_pClipRgn;
int m_BitmapAlpha;
- FX_DWORD m_MaskColor;
+ uint32_t m_MaskColor;
CFX_Matrix m_Matrix;
CFX_ImageTransformer* m_pTransformer;
CFX_ImageStretcher m_Stretcher;
CFX_BitmapComposer m_Composer;
int m_Status;
FX_RECT m_ClipBox;
- FX_DWORD m_Flags;
+ uint32_t m_Flags;
int m_AlphaFlag;
void* m_pIccTransform;
FX_BOOL m_bRgbByteOrder;
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h
index 382a916734..c52e614e97 100644
--- a/core/include/fxge/fx_font.h
+++ b/core/include/fxge/fx_font.h
@@ -66,12 +66,12 @@ class CFX_Font {
void LoadSubst(const CFX_ByteString& face_name,
FX_BOOL bTrueType,
- FX_DWORD flags,
+ uint32_t flags,
int weight,
int italic_angle,
int CharsetCP,
FX_BOOL bVertical = FALSE);
- FX_BOOL LoadEmbedded(const uint8_t* data, FX_DWORD size);
+ FX_BOOL LoadEmbedded(const uint8_t* data, uint32_t size);
FXFT_Face GetFace() const { return m_Face; }
#ifdef PDF_ENABLE_XFA
@@ -87,11 +87,11 @@ class CFX_Font {
const CFX_SubstFont* GetSubstFont() const { return m_pSubstFont; }
#endif // PDF_ENABLE_XFA
- CFX_PathData* LoadGlyphPath(FX_DWORD glyph_index, int dest_width = 0);
- int GetGlyphWidth(FX_DWORD glyph_index);
+ CFX_PathData* LoadGlyphPath(uint32_t glyph_index, int dest_width = 0);
+ int GetGlyphWidth(uint32_t glyph_index);
int GetAscent() const;
int GetDescent() const;
- FX_BOOL GetGlyphBBox(FX_DWORD glyph_index, FX_RECT& bbox);
+ FX_BOOL GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox);
FX_BOOL IsItalic() const;
FX_BOOL IsBold() const;
FX_BOOL IsFixedWidth() const;
@@ -111,7 +111,7 @@ class CFX_Font {
void* GetPlatformFont() const { return m_pPlatformFont; }
void SetPlatformFont(void* font) { m_pPlatformFont = font; }
uint8_t* GetFontData() const { return m_pFontData; }
- FX_DWORD GetSize() const { return m_dwSize; }
+ uint32_t GetSize() const { return m_dwSize; }
void AdjustMMParams(int glyph_index, int width, int weight);
private:
@@ -123,7 +123,7 @@ class CFX_Font {
uint8_t* m_pFontDataAllocation;
uint8_t* m_pFontData;
uint8_t* m_pGsubData;
- FX_DWORD m_dwSize;
+ uint32_t m_dwSize;
CFX_BinaryBuf m_OtfFontData;
void* m_hHandle;
void* m_pPlatformFont;
@@ -147,8 +147,8 @@ class CFX_Font {
#ifdef PDF_ENABLE_XFA
#define FXFM_ENC_TAG(a, b, c, d) \
- (((FX_DWORD)(a) << 24) | ((FX_DWORD)(b) << 16) | ((FX_DWORD)(c) << 8) | \
- (FX_DWORD)(d))
+ (((uint32_t)(a) << 24) | ((uint32_t)(b) << 16) | ((uint32_t)(c) << 8) | \
+ (uint32_t)(d))
#define FXFM_ENCODING_NONE FXFM_ENC_TAG(0, 0, 0, 0)
#define FXFM_ENCODING_MS_SYMBOL FXFM_ENC_TAG('s', 'y', 'm', 'b')
#define FXFM_ENCODING_UNICODE FXFM_ENC_TAG('u', 'n', 'i', 'c')
@@ -170,7 +170,7 @@ class CFX_UnicodeEncoding {
explicit CFX_UnicodeEncoding(CFX_Font* pFont);
virtual ~CFX_UnicodeEncoding();
- virtual FX_DWORD GlyphFromCharCode(FX_DWORD charcode);
+ virtual uint32_t GlyphFromCharCode(uint32_t charcode);
protected:
// Unowned, not nullptr.
@@ -180,20 +180,20 @@ class CFX_UnicodeEncoding {
#ifdef PDF_ENABLE_XFA
class CFX_UnicodeEncodingEx : public CFX_UnicodeEncoding {
public:
- CFX_UnicodeEncodingEx(CFX_Font* pFont, FX_DWORD EncodingID);
+ CFX_UnicodeEncodingEx(CFX_Font* pFont, uint32_t EncodingID);
~CFX_UnicodeEncodingEx() override;
// CFX_UnicodeEncoding:
- FX_DWORD GlyphFromCharCode(FX_DWORD charcode) override;
+ uint32_t GlyphFromCharCode(uint32_t charcode) override;
- FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const;
+ uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const;
private:
- FX_DWORD m_nEncodingID;
+ uint32_t m_nEncodingID;
};
CFX_UnicodeEncodingEx* FX_CreateFontEncodingEx(
CFX_Font* pFont,
- FX_DWORD nEncodingID = FXFM_ENCODING_NONE);
+ uint32_t nEncodingID = FXFM_ENCODING_NONE);
#endif // PDF_ENABLE_XFA
#define FXFONT_SUBST_MM 0x01
@@ -214,7 +214,7 @@ class CFX_SubstFont {
int m_Charset;
- FX_DWORD m_SubstFlags;
+ uint32_t m_SubstFlags;
int m_Weight;
@@ -249,29 +249,29 @@ class CFX_FontMgr {
int weight,
FX_BOOL bItalic,
uint8_t* pData,
- FX_DWORD size,
+ uint32_t size,
int face_index);
FXFT_Face GetCachedTTCFace(int ttc_size,
- FX_DWORD checksum,
+ uint32_t checksum,
int font_offset,
uint8_t*& pFontData);
FXFT_Face AddCachedTTCFace(int ttc_size,
- FX_DWORD checksum,
+ uint32_t checksum,
uint8_t* pData,
- FX_DWORD size,
+ uint32_t size,
int font_offset);
FXFT_Face GetFileFace(const FX_CHAR* filename, int face_index);
- FXFT_Face GetFixedFace(const uint8_t* pData, FX_DWORD size, int face_index);
+ FXFT_Face GetFixedFace(const uint8_t* pData, uint32_t size, int face_index);
void ReleaseFace(FXFT_Face face);
void SetSystemFontInfo(IFX_SystemFontInfo* pFontInfo);
FXFT_Face FindSubstFont(const CFX_ByteString& face_name,
FX_BOOL bTrueType,
- FX_DWORD flags,
+ uint32_t flags,
int weight,
int italic_angle,
int CharsetCP,
CFX_SubstFont* pSubstFont);
- bool GetBuiltinFont(size_t index, const uint8_t** pFontData, FX_DWORD* size);
+ bool GetBuiltinFont(size_t index, const uint8_t** pFontData, uint32_t* size);
CFX_FontMapper* GetBuiltinMapper() const { return m_pBuiltinMapper.get(); }
FXFT_Library GetFTLibrary() const { return m_FTLibrary; }
@@ -316,14 +316,14 @@ class CFX_FontMapper {
IFX_FontEnumerator* GetFontEnumerator() const { return m_pFontEnumerator; }
FXFT_Face FindSubstFont(const CFX_ByteString& face_name,
FX_BOOL bTrueType,
- FX_DWORD flags,
+ uint32_t flags,
int weight,
int italic_angle,
int CharsetCP,
CFX_SubstFont* pSubstFont);
#ifdef PDF_ENABLE_XFA
- FXFT_Face FindSubstFontByUnicode(FX_DWORD dwUnicode,
- FX_DWORD flags,
+ FXFT_Face FindSubstFontByUnicode(uint32_t dwUnicode,
+ uint32_t flags,
int weight,
int italic_angle);
#endif // PDF_ENABLE_XFA
@@ -346,7 +346,7 @@ class CFX_FontMapper {
FX_BOOL m_bListLoaded;
FXFT_Face m_MMFaces[MM_FACE_COUNT];
CFX_ByteString m_LastFamily;
- CFX_ArrayTemplate<FX_DWORD> m_CharsetArray;
+ CFX_ArrayTemplate<uint32_t> m_CharsetArray;
std::vector<CFX_ByteString> m_FaceArray;
IFX_SystemFontInfo* m_pFontInfo;
FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT];
@@ -368,17 +368,17 @@ class IFX_SystemFontInfo {
int& iExact) = 0;
#ifdef PDF_ENABLE_XFA
- virtual void* MapFontByUnicode(FX_DWORD dwUnicode,
+ virtual void* MapFontByUnicode(uint32_t dwUnicode,
int weight,
FX_BOOL bItalic,
int pitch_family);
#endif // PDF_ENABLE_XFA
virtual void* GetFont(const FX_CHAR* face) = 0;
- virtual FX_DWORD GetFontData(void* hFont,
- FX_DWORD table,
+ virtual uint32_t GetFontData(void* hFont,
+ uint32_t table,
uint8_t* buffer,
- FX_DWORD size) = 0;
+ uint32_t size) = 0;
virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) = 0;
virtual FX_BOOL GetFontCharset(void* hFont, int& charset) = 0;
virtual int GetFaceIndex(void* hFont);
@@ -405,16 +405,16 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo {
const FX_CHAR* face,
int& bExact) override;
#ifdef PDF_ENABLE_XFA
- void* MapFontByUnicode(FX_DWORD dwUnicode,
+ void* MapFontByUnicode(uint32_t dwUnicode,
int weight,
FX_BOOL bItalic,
int pitch_family) override;
#endif // PDF_ENABLE_XFA
void* GetFont(const FX_CHAR* face) override;
- FX_DWORD GetFontData(void* hFont,
- FX_DWORD table,
+ uint32_t GetFontData(void* hFont,
+ uint32_t table,
uint8_t* buffer,
- FX_DWORD size) override;
+ uint32_t size) override;
void DeleteFont(void* hFont) override;
FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) override;
FX_BOOL GetFontCharset(void* hFont, int& charset) override;
@@ -424,8 +424,8 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo {
void ScanFile(const CFX_ByteString& path);
void ReportFace(const CFX_ByteString& path,
FXSYS_FILE* pFile,
- FX_DWORD filesize,
- FX_DWORD offset);
+ uint32_t filesize,
+ uint32_t offset);
void* GetSubstFont(const CFX_ByteString& face);
void* FindFont(int weight,
FX_BOOL bItalic,
@@ -442,7 +442,7 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo {
class CFX_CountedFaceCache {
public:
CFX_FaceCache* m_Obj;
- FX_DWORD m_nCount;
+ uint32_t m_nCount;
};
class CFX_FontCache {
@@ -480,32 +480,32 @@ class CFX_FaceCache {
explicit CFX_FaceCache(FXFT_Face face);
~CFX_FaceCache();
const CFX_GlyphBitmap* LoadGlyphBitmap(CFX_Font* pFont,
- FX_DWORD glyph_index,
+ uint32_t glyph_index,
FX_BOOL bFontStyle,
const CFX_Matrix* pMatrix,
int dest_width,
int anti_alias,
int& text_flags);
const CFX_PathData* LoadGlyphPath(CFX_Font* pFont,
- FX_DWORD glyph_index,
+ uint32_t glyph_index,
int dest_width);
private:
CFX_GlyphBitmap* RenderGlyph(CFX_Font* pFont,
- FX_DWORD glyph_index,
+ uint32_t glyph_index,
FX_BOOL bFontStyle,
const CFX_Matrix* pMatrix,
int dest_width,
int anti_alias);
CFX_GlyphBitmap* RenderGlyph_Nativetext(CFX_Font* pFont,
- FX_DWORD glyph_index,
+ uint32_t glyph_index,
const CFX_Matrix* pMatrix,
int dest_width,
int anti_alias);
CFX_GlyphBitmap* LookUpGlyphBitmap(CFX_Font* pFont,
const CFX_Matrix* pMatrix,
CFX_ByteStringC& FaceGlyphsKey,
- FX_DWORD glyph_index,
+ uint32_t glyph_index,
FX_BOOL bFontStyle,
int dest_width,
int anti_alias);
@@ -514,7 +514,7 @@ class CFX_FaceCache {
FXFT_Face const m_Face;
std::map<CFX_ByteString, CFX_SizeGlyphCache*> m_SizeMap;
- std::map<FX_DWORD, CFX_PathData*> m_PathMap;
+ std::map<uint32_t, CFX_PathData*> m_PathMap;
CFX_DIBitmap* m_pBitmap;
};
@@ -535,15 +535,15 @@ FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos,
class IFX_GSUBTable {
public:
static IFX_GSUBTable* Create(CFX_Font* pFont);
- virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0;
+ virtual FX_BOOL GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum) = 0;
protected:
virtual ~IFX_GSUBTable() {}
};
CFX_ByteString GetNameFromTT(const uint8_t* name_table,
- FX_DWORD name_table_size,
- FX_DWORD name);
+ uint32_t name_table_size,
+ uint32_t name);
int PDF_GetStandardFontName(CFX_ByteString* name);
diff --git a/core/include/fxge/fx_ge.h b/core/include/fxge/fx_ge.h
index d824d08228..3eb9303a80 100644
--- a/core/include/fxge/fx_ge.h
+++ b/core/include/fxge/fx_ge.h
@@ -235,12 +235,12 @@ class CFX_GraphStateData {
#define FXTEXT_PRINTIMAGETEXT 0x10
#define FXTEXT_NOSMOOTH 0x20
typedef struct {
- FX_DWORD m_GlyphIndex;
+ uint32_t m_GlyphIndex;
FX_FLOAT m_OriginX, m_OriginY;
int m_FontCharWidth;
FX_BOOL m_bGlyphAdjust;
FX_FLOAT m_AdjustMatrix[4];
- FX_DWORD m_ExtGID;
+ uint32_t m_ExtGID;
FX_BOOL m_bFontStyle;
} FXTEXT_CHARPOS;
@@ -286,8 +286,8 @@ class CFX_RenderDevice {
FX_BOOL DrawPath(const CFX_PathData* pPathData,
const CFX_Matrix* pObject2Device,
const CFX_GraphStateData* pGraphState,
- FX_DWORD fill_color,
- FX_DWORD stroke_color,
+ uint32_t fill_color,
+ uint32_t stroke_color,
int fill_mode,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -295,12 +295,12 @@ class CFX_RenderDevice {
FX_BOOL SetPixel(int x,
int y,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL);
FX_BOOL FillRect(const FX_RECT* pRect,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL,
int blend_type = FXDIB_BLEND_NORMAL);
@@ -309,7 +309,7 @@ class CFX_RenderDevice {
FX_FLOAT y1,
FX_FLOAT x2,
FX_FLOAT y2,
- FX_DWORD color,
+ uint32_t color,
int fill_mode = 0,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -333,14 +333,14 @@ class CFX_RenderDevice {
int top,
int dest_width,
int dest_height,
- FX_DWORD flags = 0,
+ uint32_t flags = 0,
void* pIccTransform = NULL,
int blend_type = FXDIB_BLEND_NORMAL);
FX_BOOL SetBitMask(const CFX_DIBSource* pBitmap,
int left,
int top,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL);
@@ -349,16 +349,16 @@ class CFX_RenderDevice {
int top,
int dest_width,
int dest_height,
- FX_DWORD color,
- FX_DWORD flags = 0,
+ uint32_t color,
+ uint32_t flags = 0,
int alpha_flag = 0,
void* pIccTransform = NULL);
FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
int bitmap_alpha,
- FX_DWORD color,
+ uint32_t color,
const CFX_Matrix* pMatrix,
- FX_DWORD flags,
+ uint32_t flags,
void*& handle,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -374,8 +374,8 @@ class CFX_RenderDevice {
CFX_FontCache* pCache,
FX_FLOAT font_size,
const CFX_Matrix* pText2Device,
- FX_DWORD fill_color,
- FX_DWORD text_flags,
+ uint32_t fill_color,
+ uint32_t text_flags,
int alpha_flag = 0,
void* pIccTransform = NULL);
@@ -387,8 +387,8 @@ class CFX_RenderDevice {
const CFX_Matrix* pText2User,
const CFX_Matrix* pUser2Device,
const CFX_GraphStateData* pGraphState,
- FX_DWORD fill_color,
- FX_DWORD stroke_color,
+ uint32_t fill_color,
+ uint32_t stroke_color,
CFX_PathData* pClippingPath,
int nFlag = 0,
int alpha_flag = 0,
@@ -403,8 +403,8 @@ class CFX_RenderDevice {
FX_BOOL DrawFillStrokePath(const CFX_PathData* pPathData,
const CFX_Matrix* pObject2Device,
const CFX_GraphStateData* pGraphState,
- FX_DWORD fill_color,
- FX_DWORD stroke_color,
+ uint32_t fill_color,
+ uint32_t stroke_color,
int fill_mode,
int alpha_flag,
void* pIccTransform,
@@ -505,8 +505,8 @@ class IFX_RenderDeviceDriver {
virtual FX_BOOL DrawPath(const CFX_PathData* pPathData,
const CFX_Matrix* pObject2Device,
const CFX_GraphStateData* pGraphState,
- FX_DWORD fill_color,
- FX_DWORD stroke_color,
+ uint32_t fill_color,
+ uint32_t stroke_color,
int fill_mode,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -514,14 +514,14 @@ class IFX_RenderDeviceDriver {
virtual FX_BOOL SetPixel(int x,
int y,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL) {
return FALSE;
}
virtual FX_BOOL FillRect(const FX_RECT* pRect,
- FX_DWORD fill_color,
+ uint32_t fill_color,
int alpha_flag = 0,
void* pIccTransform = NULL,
int blend_type = FXDIB_BLEND_NORMAL) {
@@ -532,7 +532,7 @@ class IFX_RenderDeviceDriver {
FX_FLOAT y1,
FX_FLOAT x2,
FX_FLOAT y2,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL,
int blend_type = FXDIB_BLEND_NORMAL) {
@@ -551,7 +551,7 @@ class IFX_RenderDeviceDriver {
virtual CFX_DIBitmap* GetBackDrop() { return NULL; }
virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
- FX_DWORD color,
+ uint32_t color,
const FX_RECT* pSrcRect,
int dest_left,
int dest_top,
@@ -560,22 +560,22 @@ class IFX_RenderDeviceDriver {
void* pIccTransform = NULL) = 0;
virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
- FX_DWORD color,
+ uint32_t color,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FX_RECT* pClipRect,
- FX_DWORD flags,
+ uint32_t flags,
int alpha_flag = 0,
void* pIccTransform = NULL,
int blend_type = FXDIB_BLEND_NORMAL) = 0;
virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
int bitmap_alpha,
- FX_DWORD color,
+ uint32_t color,
const CFX_Matrix* pMatrix,
- FX_DWORD flags,
+ uint32_t flags,
void*& handle,
int alpha_flag = 0,
void* pIccTransform = NULL,
@@ -593,7 +593,7 @@ class IFX_RenderDeviceDriver {
CFX_FontCache* pCache,
const CFX_Matrix* pObject2Device,
FX_FLOAT font_size,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL) {
return FALSE;
@@ -652,33 +652,33 @@ class CFX_PSRenderer {
FX_BOOL DrawPath(const CFX_PathData* pPathData,
const CFX_Matrix* pObject2Device,
const CFX_GraphStateData* pGraphState,
- FX_DWORD fill_color,
- FX_DWORD stroke_color,
+ uint32_t fill_color,
+ uint32_t stroke_color,
int fill_mode,
int alpha_flag = 0,
void* pIccTransform = NULL);
FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
- FX_DWORD color,
+ uint32_t color,
int dest_left,
int dest_top,
int alpha_flag = 0,
void* pIccTransform = NULL);
FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
- FX_DWORD color,
+ uint32_t color,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
- FX_DWORD flags,
+ uint32_t flags,
int alpha_flag = 0,
void* pIccTransform = NULL);
FX_BOOL DrawDIBits(const CFX_DIBSource* pBitmap,
- FX_DWORD color,
+ uint32_t color,
const CFX_Matrix* pMatrix,
- FX_DWORD flags,
+ uint32_t flags,
int alpha_flag = 0,
void* pIccTransform = NULL);
@@ -688,7 +688,7 @@ class CFX_PSRenderer {
CFX_FontCache* pCache,
const CFX_Matrix* pObject2Device,
FX_FLOAT font_size,
- FX_DWORD color,
+ uint32_t color,
int alpha_flag = 0,
void* pIccTransform = NULL);
@@ -705,7 +705,7 @@ class CFX_PSRenderer {
FX_BOOL m_bColorSet;
- FX_DWORD m_LastColor;
+ uint32_t m_LastColor;
FX_RECT m_ClipBox;
@@ -719,7 +719,7 @@ class CFX_PSRenderer {
void SetGraphState(const CFX_GraphStateData* pGraphState);
- void SetColor(FX_DWORD color, int alpha_flag, void* pIccTransform);
+ void SetColor(uint32_t color, int alpha_flag, void* pIccTransform);
void FindPSFontGlyph(CFX_FaceCache* pFaceCache,
CFX_Font* pFont,
diff --git a/core/include/fxge/fx_ge_win32.h b/core/include/fxge/fx_ge_win32.h
index 149c46d40b..f1864590c5 100644
--- a/core/include/fxge/fx_ge_win32.h
+++ b/core/include/fxge/fx_ge_win32.h
@@ -32,8 +32,8 @@ class CFX_WindowsDIB : public CFX_DIBitmap {
static CFX_DIBitmap* LoadFromDDB(HDC hDC,
HBITMAP hBitmap,
- FX_DWORD* pPalette = NULL,
- FX_DWORD size = 256);
+ uint32_t* pPalette = NULL,
+ uint32_t size = 256);
static CFX_DIBitmap* LoadFromFile(const FX_WCHAR* filename);