From af05206f3fe6347df11756965598b44feb1191ab Mon Sep 17 00:00:00 2001 From: Archez Date: Tue, 26 Mar 2024 19:34:47 -0400 Subject: [PATCH] fix tha bar on speed meter (#157) --- mm/src/code/speed_meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/src/code/speed_meter.c b/mm/src/code/speed_meter.c index 3550d62ce..9669e73ce 100644 --- a/mm/src/code/speed_meter.c +++ b/mm/src/code/speed_meter.c @@ -191,7 +191,7 @@ void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxC G_TD_CLAMP | G_TP_NONE | G_CYC_FILL | G_PM_NPRIMITIVE, G_AC_NONE | G_ZS_PIXEL | G_RM_NOOP | G_RM_NOOP2); - usedOff = ((this->lrx - this->ulx) * this->val) / this->maxVal + this->ulx; + usedOff = ((s64)(this->lrx - this->ulx) * this->val) / this->maxVal + this->ulx; gDrawRect(gfx++, this->backColor, usedOff, this->uly, this->lrx, this->lry); gDrawRect(gfx++, this->foreColor, this->ulx, this->uly, usedOff, this->lry);