summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-29 17:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-29 17:59:57 +0300
commitf315432679f760b71505e74dcb2185b7aef7a906 (patch)
tree07d45620464a2542cb28fbe773f652501e6ee6fb /src/gui/widgets/progressbar.cpp
parentcccb3e11663eb415b9b6c9a184e1c17762a2d989 (diff)
downloadplus-f315432679f760b71505e74dcb2185b7aef7a906.tar.gz
plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.bz2
plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.xz
plus-f315432679f760b71505e74dcb2185b7aef7a906.zip
change smaller letter literalt into capital letter.
Diffstat (limited to 'src/gui/widgets/progressbar.cpp')
-rw-r--r--src/gui/widgets/progressbar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index b5af0360d..b0972a314 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -57,8 +57,8 @@ ProgressBar::ProgressBar(const Widget2 *const widget, float progress,
mRedraw(true)
{
// The progress value is directly set at load time:
- if (mProgress > 1.0f || mProgress < 0.0f)
- mProgress = 1.0f;
+ if (mProgress > 1.0F || mProgress < 0.0F)
+ mProgress = 1.0F;
mForegroundColor = getThemeColor(Theme::PROGRESS_BAR);
addWidgetListener(this);
@@ -120,9 +120,9 @@ void ProgressBar::logic()
{
// Smoothly showing the progressbar changes.
if (mProgressToGo > mProgress)
- mProgress = std::min(1.0f, mProgress + 0.005f);
+ mProgress = std::min(1.0F, mProgress + 0.005F);
if (mProgressToGo < mProgress)
- mProgress = std::max(0.0f, mProgress - 0.005f);
+ mProgress = std::max(0.0F, mProgress - 0.005F);
}
BLOCK_END("ProgressBar::logic")
}
@@ -145,7 +145,7 @@ void ProgressBar::draw(gcn::Graphics *graphics)
void ProgressBar::setProgress(const float progress)
{
- const float p = std::min(1.0f, std::max(0.0f, progress));
+ const float p = std::min(1.0F, std::max(0.0F, progress));
mProgressToGo = p;
if (!mSmoothProgress)