mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
GUI: fix set volume percentage
This commit is contained in:
parent
40f62aa13e
commit
ce4432175d
1 changed files with 1 additions and 1 deletions
|
@ -4575,7 +4575,7 @@ bool FurnaceGUI::loop() {
|
|||
info=fmt::sprintf("Set volume: %d (%.2X, INVALID!)",p->data[cursor.y][3],p->data[cursor.y][3]);
|
||||
} else {
|
||||
float realVol=e->mapVelocity(cursor.xCoarse,(float)p->data[cursor.y][3]/(float)maxVol);
|
||||
info=fmt::sprintf("Set volume: %d (%.2X, %d%%)",p->data[cursor.y][3],p->data[cursor.y][3],(int)(realVol*100.0f));
|
||||
info=fmt::sprintf("Set volume: %d (%.2X, %d%%)",p->data[cursor.y][3],p->data[cursor.y][3],(int)(realVol*100.0f/(float)maxVol));
|
||||
}
|
||||
hasInfo=true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue