mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-12-06 03:07:19 +00:00
Some inline + remove useless const&.
This commit is contained in:
1 parent
689192e902
commit
ddbea3ab36
35 files changed
+186
-228
No files matched your search
@@ -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