mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CMsgBox: reduce flicker effects with single button
Disabled refresh avoids unnecessary repaints with possible flicker effects
on pressed navi keys.
Origin commit data
------------------
Branch: ni/coolstream
Commit: d632d66581
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-29 (Tue, 29 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -288,15 +288,19 @@ int CMsgBox::exec()
|
|||||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||||
}
|
}
|
||||||
selected = ccw_footer->getSelectedButton();
|
selected = ccw_footer->getSelectedButton();
|
||||||
refreshFoot();
|
|
||||||
|
|
||||||
//refresh timeout on any pressed navi key! This resets current timeout end to the initial value
|
//***refresh buttons only if we have more than one button, this avoids unnecessary repaints with possible flicker effects***
|
||||||
|
if (ccw_footer->getButtonChainObject()->size()>1)
|
||||||
|
refreshFoot();
|
||||||
|
|
||||||
|
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
||||||
if (timeout > 0){
|
if (timeout > 0){
|
||||||
timeout_pb->setValues(0, timeout);
|
timeout_pb->setValues(0, timeout);
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||||
}
|
}
|
||||||
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
//***action buttons without preselection***
|
//***action buttons without preselection***
|
||||||
for (size_t i = 0; i< ccw_footer->getButtonChainObject()->size(); i++){
|
for (size_t i = 0; i< ccw_footer->getButtonChainObject()->size(); i++){
|
||||||
CComponentsButton* btn_action = static_cast<CComponentsButton*>(ccw_footer->getButtonChainObject()->getCCItem(i));
|
CComponentsButton* btn_action = static_cast<CComponentsButton*>(ccw_footer->getButtonChainObject()->getCCItem(i));
|
||||||
|
Reference in New Issue
Block a user