Skip to content

Commit

Permalink
Fix background color to transparent when it's supposed to be = backgr…
Browse files Browse the repository at this point in the history
…oundColor
  • Loading branch information
Jaykul committed Feb 21, 2012
1 parent 16f00a0 commit 8a15adf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions HuddledControls/ConsoleControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,10 @@ private void Write(ConsoleColor foreground, ConsoleColor background, string text
{
Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action)delegate
{
if (target == null) target = _current;

new Run(text, target.ContentEnd)
{
Background = _brushes.BrushFromConsoleColor(background),
Foreground = _brushes.BrushFromConsoleColor(foreground)
Background = (this.BackgroundColor == background) ? this.Brushes.Transparent : this._brushes.BrushFromConsoleColor(background),
Foreground = this._brushes.BrushFromConsoleColor(foreground)
};
ScrollViewer.ScrollToBottom();
});
Expand Down

0 comments on commit 8a15adf

Please sign in to comment.