Whitespace and minor code cleanup

This is by no means comprehensive, but is quite a bit better already.

Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
This commit is contained in:
Matt Mower
2014-04-16 13:43:36 -05:00
committed by Ethan Yonker
parent 87c7bac9c9
commit fb1c4ffaaf
66 changed files with 205 additions and 2157 deletions
+8 -4
View File
@@ -156,11 +156,15 @@ int GUIProgressBar::Update(void)
cur -= min;
min = 0;
if (cur < min) cur = min;
if (cur > max) cur = max;
if (cur < min)
cur = min;
if (cur > max)
cur = max;
if (max == 0) pos = 0;
else pos = (cur * mRenderW) / max;
if (max == 0)
pos = 0;
else
pos = (cur * mRenderW) / max;
if (pos == mLastPos)
return 0;