summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemCANCEL.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
commitc2efba6907fab934a04959b9bb644cf7141cc955 (patch)
treec047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2DlgItemCANCEL.cpp
parent1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff)
downloadt2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz
t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2DlgItemCANCEL.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/T2DLL/T2DlgItemCANCEL.cpp b/src/T2DLL/T2DlgItemCANCEL.cpp
index 8b0a197..b75bcc9 100644
--- a/src/T2DLL/T2DlgItemCANCEL.cpp
+++ b/src/T2DLL/T2DlgItemCANCEL.cpp
@@ -5,12 +5,12 @@ T2DlgItemCANCEL::T2DlgItemCANCEL(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPal
{
}
-/*virtual*/ BOOL T2DlgItemCANCEL::Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId) {
- CRect rectToUse = rect;
+/*virtual*/ BOOL T2DlgItemCANCEL::Create(const char* windowName, DWORD style, const RECT& inRect, CWnd* parentWnd, UINT nId) {
+ CRect rect = inRect;
CRect imageRect;
GetObjectImage(imageRect, "DLGITEM:Cancel");
- rectToUse.right = rectToUse.left + imageRect.Width();
- rectToUse.bottom = rectToUse.top + imageRect.Height();
- return T2DlgItem::Create("DLGITEM:Cancel", style, rectToUse, parentWnd, nId);
+ rect.right = rect.left + imageRect.Width();
+ rect.bottom = rect.top + imageRect.Height();
+ return T2DlgItem::Create("DLGITEM:Cancel", style, rect, parentWnd, nId);
}