summaryrefslogtreecommitdiff
path: root/src/T2DLL/CToggleButtonDisabled.cpp
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/CToggleButtonDisabled.cpp
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/CToggleButtonDisabled.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/T2DLL/CToggleButtonDisabled.cpp b/src/T2DLL/CToggleButtonDisabled.cpp
index e31ae08..f69f8cc 100644
--- a/src/T2DLL/CToggleButtonDisabled.cpp
+++ b/src/T2DLL/CToggleButtonDisabled.cpp
@@ -10,7 +10,7 @@ CToggleButtonDisabled::CToggleButtonDisabled(T2TowerDoc* towerDoc, T2ImageObj* i
CRect rect1 = rect;
CRect rect2;
- if (GetObjectImage(rect2, windowName, -1, 0, 0, 255)) {
+ if (GetObjectImage(rect2, windowName)) {
rect1.right = rect1.left + rect2.Width();
rect1.bottom = rect1.top + rect2.Height();
} else {
@@ -58,7 +58,7 @@ void CToggleButtonDisabled::Disable() {
GetWindowText(text);
RECT imageRect;
- T2BitImage *image = GetObjectImage(imageRect, text, GetPattern(), 0, 0, 255);
+ T2BitImage *image = GetObjectImage(imageRect, text, GetPattern());
if (image)
image->CopyImage(dc, imageRect, clientRect, 0, NULL);