summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2BitImage.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2BitImage.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-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);
};