mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
fix tha bar on speed meter (#157)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user