(svn r25683) -Add: Support for a marked/selected range to the textbuf.

This commit is contained in:
michi_cc
2013-08-05 20:37:22 +00:00
parent cbdfd31a3c
commit 64d2fc4d1e
4 changed files with 68 additions and 0 deletions

View File

@@ -216,6 +216,9 @@ struct IConsoleWindow : Window
delta = 0;
}
/* If we have a marked area, draw a background highlight. */
if (_iconsole_cmdline.marklength != 0) GfxFillRect(this->line_offset + delta + _iconsole_cmdline.markxoffs, this->height - this->line_height, this->line_offset + delta + _iconsole_cmdline.markxoffs + _iconsole_cmdline.marklength, this->height - 1, PC_DARK_RED);
DrawString(this->line_offset + delta, right, this->height - this->line_height, _iconsole_cmdline.buf, (TextColour)CC_COMMAND, SA_LEFT | SA_FORCE);
if (_focused_window == this && _iconsole_cmdline.caret) {