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

Supplement to commit:
	CColorChooser: fix compile conversion warnings
	730835160d


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 warnings
	730835160d
This commit is contained in:
2017-03-19 15:58:31 +01:00
parent 65a6270f5b
commit 49d38582e5

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