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:
+8
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user