mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
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:
@@ -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