CVolumeBar: remove redundant code parts

corrections of position is already  calculated in paintInit()
This commit is contained in:
2013-06-16 00:24:16 +02:00
parent 940576f0a0
commit a6cd3d8633

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);
}