From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/T2DlgItemOK.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/T2DLL/T2DlgItemOK.cpp') diff --git a/src/T2DLL/T2DlgItemOK.cpp b/src/T2DLL/T2DlgItemOK.cpp index 3f1cdf6..07a7d08 100644 --- a/src/T2DLL/T2DlgItemOK.cpp +++ b/src/T2DLL/T2DlgItemOK.cpp @@ -5,12 +5,12 @@ T2DlgItemOK::T2DlgItemOK(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* in { } -/*virtual*/ BOOL T2DlgItemOK::Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId) { - CRect rectToUse = rect; +/*virtual*/ BOOL T2DlgItemOK::Create(const char* windowName, DWORD style, const RECT& inRect, CWnd* parentWnd, UINT nId) { + CRect rect = inRect; CRect imageRect; GetObjectImage(imageRect, "DLGITEM:OK"); - rectToUse.right = rectToUse.left + imageRect.Width(); - rectToUse.bottom = rectToUse.top + imageRect.Height(); - return T2DlgItem::Create("DLGITEM:OK", style, rectToUse, parentWnd, nId); + rect.right = rect.left + imageRect.Width(); + rect.bottom = rect.top + imageRect.Height(); + return T2DlgItem::Create("DLGITEM:OK", style, rect, parentWnd, nId); } -- cgit v1.2.3