fix bug that line alorithm wrongly draws a line when fade_rate is zero

This commit is contained in:
Jinhao
2018-12-29 06:38:46 +08:00
parent 1f8f991103
commit bed829fa26
3 changed files with 10 additions and 6 deletions

View File

@@ -2002,7 +2002,7 @@ namespace nana {
auto fgcolor = scheme_->foreground.get_color();
if (!API::window_enabled(window_))
fgcolor.blend(bgcolor, 0.5); // do nothing !!! should be replace with <code> fgcolor = fgcolor.blend(bgcolor, 0.5); <\code> or removed
fgcolor = fgcolor.blend(bgcolor, 0.5); //Thank to besh81 for getting the fgcolor to be changed
if (API::widget_borderless(window_))
graph_.rectangle(false, bgcolor);