mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Some inline + remove useless const&.
This commit is contained in:
@@ -45,10 +45,10 @@ extern curl_off_t downloadNow;
|
||||
/*
|
||||
Draw the progressbar.
|
||||
|
||||
const u64 ¤tProgress: Const Reference to the current progress.
|
||||
const u64 &totalProgress: Const Reference to the total progress.
|
||||
u64 currentProgress: The current progress.
|
||||
u64 totalProgress: The total progress.
|
||||
*/
|
||||
void Animation::DrawProgressBar(const u64 ¤tProgress, const u64 &totalProgress) {
|
||||
void Animation::DrawProgressBar(u64 currentProgress, u64 totalProgress) {
|
||||
Gui::Draw_Rect(30, 120, 340, 30, PROGRESSBAR_OUT_COLOR);
|
||||
Gui::Draw_Rect(31, 121, (int)(((float)currentProgress / (float)totalProgress) * 338.0f), 28, PROGRESSBAR_IN_COLOR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user