mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CColorChooser: fix missing rewrite current values to *value[selected]
Supplement to commit: CColorChooser: fix compile conversion warnings730835160d
Origin commit data ------------------ Commit:9801c3100c
Author: Thilo Graf <dbt@novatux.de> Date: 2017-03-19 (Sun, 19 Mar 2017) Origin message was: ------------------ CColorChooser: fix missing rewrite current values to *value[selected] Supplement to commit: CColorChooser: fix compile conversion warnings730835160d
This commit is contained in:
@@ -197,6 +197,7 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &)
|
||||
val += 2;
|
||||
else
|
||||
val = 100;
|
||||
(*value[selected]) = (uint8_t)val;
|
||||
|
||||
paintSlider(x + 10, y + hheight + mheight * selected, value[selected], colorchooser_names[selected], iconnames[selected], true);
|
||||
setColor();
|
||||
@@ -211,6 +212,7 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &)
|
||||
val -= 2;
|
||||
else
|
||||
val = 0;
|
||||
(*value[selected]) = (uint8_t)val;
|
||||
|
||||
paintSlider(x + 10, y + hheight + mheight * selected, value[selected], colorchooser_names[selected], iconnames[selected], true);
|
||||
setColor();
|
||||
|
Reference in New Issue
Block a user