From 165785c434903ab26db93cb8b2940ffbe30fad3c Mon Sep 17 00:00:00 2001 From: MS Date: Thu, 13 Jun 2024 23:56:28 -0400 Subject: [PATCH] Bugfix for LegoMeterPresenter::DrawMeter (#1033) --- LEGO1/lego/legoomni/src/control/legometerpresenter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/control/legometerpresenter.cpp b/LEGO1/lego/legoomni/src/control/legometerpresenter.cpp index 5a4435ca..398a29e9 100644 --- a/LEGO1/lego/legoomni/src/control/legometerpresenter.cpp +++ b/LEGO1/lego/legoomni/src/control/legometerpresenter.cpp @@ -145,7 +145,7 @@ void LegoMeterPresenter::DrawMeter() case e_bottomToTop: bottomTopEnd = m_meterRect.GetBottom() - (MxS16) (m_meterRect.GetHeight() * m_curPercent); - for (row = m_meterRect.GetBottom(); row < bottomTopEnd; row--) { + for (row = m_meterRect.GetBottom(); row > bottomTopEnd; row--) { MxU8* line = m_frameBitmap->GetStart(m_meterRect.GetLeft(), row); for (bottomTopCol = 0; bottomTopCol < m_meterRect.GetWidth(); bottomTopCol++, line++) {