some windows fixes

This commit is contained in:
Arvid Norberg
2015-03-08 01:21:43 +00:00
parent f981221cff
commit 78f65bb37f
3 changed files with 491 additions and 491 deletions

View File

@@ -303,7 +303,7 @@ void print(char const* str)
{
COORD pos = sbi.dwCursorPosition;
int width = sbi.dwSize.X;
int run = (width - pos.X) + width * (sbi.swSize.Y - pos.Y - 1);
int run = (width - pos.X) + width * (sbi.dwSize.Y - pos.Y - 1);
DWORD n;
FillConsoleOutputAttribute(out, 0x7, run, pos, &n);
FillConsoleOutputCharacter(out, ' ', run, pos, &n);