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/T2DlgItemButtonBase.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/T2DLL/T2DlgItemButtonBase.cpp') diff --git a/src/T2DLL/T2DlgItemButtonBase.cpp b/src/T2DLL/T2DlgItemButtonBase.cpp index 2ef7362..bb2fc14 100644 --- a/src/T2DLL/T2DlgItemButtonBase.cpp +++ b/src/T2DLL/T2DlgItemButtonBase.cpp @@ -43,6 +43,7 @@ T2DlgItemButtonBase::T2DlgItemButtonBase(T2TowerDoc* inDoc, T2ImageObj* inImageO /*virtual*/ void T2DlgItemButtonBase::DrawButtonBase(CDC* pDC, const RECT& inRect, BOOL flag) { if (IsWindowEnabled() && flag) { +#pragma var_order(brush, penB, save, penA) int save = pDC->SaveDC(); pDC->SelectPalette(mPalette, false); pDC->RealizePalette(); @@ -65,6 +66,7 @@ T2DlgItemButtonBase::T2DlgItemButtonBase(T2TowerDoc* inDoc, T2ImageObj* inImageO pDC->RestoreDC(save); } else { +#pragma var_order(brush, penB, penC, save, penA) int save = pDC->SaveDC(); pDC->SelectPalette(mPalette, false); pDC->RealizePalette(); -- cgit v1.2.3