summaryrefslogtreecommitdiffstats
path: root/src/line_printer.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2013-04-09 17:03:46 (GMT)
committerScott Graham <scottmg@chromium.org>2013-04-09 17:03:46 (GMT)
commit808aa158be0d422a2ee5366a3f4eda29cd51c39a (patch)
tree1eec01a29e04b7207c40d162e4074feee149a52d /src/line_printer.cc
parent3e5dce7ce641c600384268db3feb74cb8aac25b3 (diff)
downloadNinja-808aa158be0d422a2ee5366a3f4eda29cd51c39a.zip
Ninja-808aa158be0d422a2ee5366a3f4eda29cd51c39a.tar.gz
Ninja-808aa158be0d422a2ee5366a3f4eda29cd51c39a.tar.bz2
fix windows build after depslog
Diffstat (limited to 'src/line_printer.cc')
-rw-r--r--src/line_printer.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/line_printer.cc b/src/line_printer.cc
index d30dd2c..751fb07 100644
--- a/src/line_printer.cc
+++ b/src/line_printer.cc
@@ -57,7 +57,7 @@ void LinePrinter::Print(std::string to_print, LineType type) {
#endif
}
- if (smart_terminal_ && type == SHORT) {
+ if (smart_terminal_ && type == ELIDE) {
#ifdef _WIN32
// Don't use the full width or console will move to next line.
size_t width = static_cast<size_t>(csbi.dwSize.X) - 1;
@@ -68,9 +68,11 @@ void LinePrinter::Print(std::string to_print, LineType type) {
GetConsoleScreenBufferInfo(console_, &csbi);
COORD buf_size = { csbi.dwSize.X, 1 };
COORD zero_zero = { 0, 0 };
- SMALL_RECT target = { csbi.dwCursorPosition.X, csbi.dwCursorPosition.Y,
- (SHORT)(csbi.dwCursorPosition.X + csbi.dwSize.X - 1),
- csbi.dwCursorPosition.Y };
+ SMALL_RECT target = {
+ csbi.dwCursorPosition.X, csbi.dwCursorPosition.Y,
+ static_cast<SHORT>(csbi.dwCursorPosition.X + csbi.dwSize.X - 1),
+ csbi.dwCursorPosition.Y
+ };
CHAR_INFO* char_data = new CHAR_INFO[csbi.dwSize.X];
memset(char_data, 0, sizeof(CHAR_INFO) * csbi.dwSize.X);
for (int i = 0; i < csbi.dwSize.X; ++i) {