Skip to content
Snippets Groups Projects
Commit 553f99a9 authored by deuce's avatar deuce
Browse files

Fix win32 gotoxy() to work with windows.

parent 01daaecd
No related branches found
No related tags found
No related merge requests found
......@@ -582,8 +582,8 @@ void win32_gotoxy(int x, int y)
cio_textinfo.curx=x;
cio_textinfo.cury=y;
cp.X=x-1;
cp.Y=y-1;
cp.X=cio_textinfo.winleft-x;
cp.Y=cio_textinfo.wintop-y;
if(!hold_update && (h=GetStdHandle(STD_OUTPUT_HANDLE)) != INVALID_HANDLE_VALUE)
SetConsoleCursorPosition(h,cp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment