diff --git a/include/window.cpp b/include/window.cpp index fbd6e5885..618ea34af 100755 --- a/include/window.cpp +++ b/include/window.cpp @@ -549,7 +549,7 @@ TPoint TWindow::dev2log(const PNT& p) const void TWindow::stringat(short x, short y, const char* str) { PNT pnt = log2dev(x,y); -#if XVTWS != WMVS +#if XVTWS != WMWS pnt.v += BASEY; #endif @@ -571,10 +571,12 @@ void TWindow::line(short x0, short y0, short x1, short y1) PNT f = log2dev(x0,y0); PNT t = log2dev(x1,y1); +#if XVTWS != WMWS if (f.h == 0) f.h = -CHARX; else f.h += CHARX>>1; if (f.v == 0) f.v = -CHARY; else f.v += CHARY>>1; if (t.h == 0) t.h = -CHARX; else t.h += CHARX>>1; if (t.v == 0) t.v = -CHARY; else t.v += CHARY>>1; +#endif win_move_to(_win, f); win_draw_line(_win, t);