mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CVolume: consolidate fb->blit() calls
This commit is contained in:
@@ -265,7 +265,6 @@ void CVolume::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool nowa
|
|||||||
|
|
||||||
volscale->reset();
|
volscale->reset();
|
||||||
refreshVolumebar(vol);
|
refreshVolumebar(vol);
|
||||||
frameBuffer->blit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
neutrino_msg_data_t data;
|
neutrino_msg_data_t data;
|
||||||
@@ -349,7 +348,6 @@ void CVolume::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool nowa
|
|||||||
if(vol != g_settings.current_volume) {
|
if(vol != g_settings.current_volume) {
|
||||||
vol = g_settings.current_volume;
|
vol = g_settings.current_volume;
|
||||||
refreshVolumebar(g_settings.current_volume);
|
refreshVolumebar(g_settings.current_volume);
|
||||||
frameBuffer->blit();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -381,6 +379,7 @@ void CVolume::refreshVolumebar(int current_volume)
|
|||||||
// progressbar
|
// progressbar
|
||||||
volscale->setValues(current_volume, 100);
|
volscale->setValues(current_volume, 100);
|
||||||
volscale->paint();
|
volscale->paint();
|
||||||
|
frameBuffer->blit();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CVolume::changeNotify(const neutrino_locale_t OptionName, void * data)
|
bool CVolume::changeNotify(const neutrino_locale_t OptionName, void * data)
|
||||||
|
Reference in New Issue
Block a user