fix bug that line alorithm wrongly draws a line when fade_rate is zero
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user