mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CVolumeBar: remove redundant code parts
corrections of position is already calculated in paintInit()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user