summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2BitImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2BitImage.h')
-rw-r--r--src/T2DLL/T2BitImage.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/T2DLL/T2BitImage.h b/src/T2DLL/T2BitImage.h
index 5e23a62..8486bda 100644
--- a/src/T2DLL/T2BitImage.h
+++ b/src/T2DLL/T2BitImage.h
@@ -7,7 +7,7 @@ struct Bitmap {
short palette[256];
};
-class DLL_EXPORT T2BitImage {
+class AFX_EXT_CLASS T2BitImage {
public:
T2BitImage(const char* path, unsigned int id, BOOL flip);
T2BitImage(HINSTANCE path, unsigned int id, BOOL flip);
@@ -17,8 +17,8 @@ public:
BOOL BeginDrawing();
void EndDrawing();
- void CopyImage(T2BitImage&, const RECT&, const RECT&, int, CRgn*);
- void CopyImage(CDC*, const RECT&, const RECT&, int, CRgn*);
+ void CopyImage(T2BitImage&, const RECT&, const RECT&, int unk = 0, CRgn* rgn = NULL);
+ void CopyImage(CDC*, const RECT&, const RECT&, int unk = 0, CRgn* rgn = NULL);
void Clear(int);
void SetBackGndColor(int);
void SetForeGndColor(int);
@@ -35,14 +35,6 @@ public:
int GetParam() { return mParam; }
void SetParam(int v) { mParam = v; }
-protected:
- friend class T2ImageObj;
-
- void SetupBitmap(BITMAPINFO* info, BOOL flip);
- void DrawFocusRect2(RECT);
- void DrawFocusLine(int, int, int, int);
- void DrawFrameLine(int, int, int, int, int);
-
Bitmap mBitmap;
unsigned char *mData;
POINT mOrigin;
@@ -53,4 +45,10 @@ protected:
BOOL mHasClipRect;
BOOL mHalftoneMode;
int mParam;
+
+protected:
+ void SetupBitmap(BITMAPINFO* info, BOOL flip);
+ void DrawFocusRect2(RECT);
+ void DrawFocusLine(int, int, int, int);
+ void DrawFrameLine(int, int, int, int, int);
};