CColorChooser: fix missing rewrite current values to *value[selected]

Supplement to commit:
	CColorChooser: fix compile conversion warnings
	054d0c33bf


Origin commit data
------------------
Branch: ni/coolstream
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 warnings
	054d0c33bf


------------------
This commit was generated by Migit
This commit is contained in:
2017-03-19 15:58:31 +01:00
parent 49102e314a
commit c40ccb5ff3

View File

@@ -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();