CVolumeBar: remove redundant code parts

corrections of position is already calculated in paintInit()


Origin commit data
------------------
Branch: ni/coolstream
Commit: a6cd3d8633
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)

Origin message was:
------------------
CVolumeBar: remove redundant code parts

corrections of position is already calculated in paintInit()


------------------
This commit was generated by Migit
This commit is contained in:
2013-06-16 00:24:16 +02:00
parent 5380b1bacb
commit 4674388fbc

View File

@@ -226,22 +226,8 @@ void CVolumeBar::paintVolumeBarDigit()
if (ctb)
ctb->setFontUseDigitHeight();
// backup original x&y pos
int _dx = vb_digit->getXPos();
int _dy = vb_digit->getYPos();
// get real x&y pos
int dx = vb_digit->getRealXPos();
int dy = vb_digit->getRealYPos();
// set real x&y pos
vb_digit->setDimensionsAll(dx, dy, vb_digit_w, height);
// paint digit
vb_digit->paint(CC_SAVE_SCREEN_NO);
// restore original x&y pos
vb_digit->setDimensionsAll(_dx, _dy, vb_digit_w, height);
}