Eliminate alcune correzioni alla posizione delle linee nella line
git-svn-id: svn://10.65.10.50/trunk@527 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8f4c56d7f3
commit
6bd108b352
@ -549,7 +549,7 @@ TPoint TWindow::dev2log(const PNT& p) const
|
|||||||
void TWindow::stringat(short x, short y, const char* str)
|
void TWindow::stringat(short x, short y, const char* str)
|
||||||
{
|
{
|
||||||
PNT pnt = log2dev(x,y);
|
PNT pnt = log2dev(x,y);
|
||||||
#if XVTWS != WMVS
|
#if XVTWS != WMWS
|
||||||
pnt.v += BASEY;
|
pnt.v += BASEY;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -571,10 +571,12 @@ void TWindow::line(short x0, short y0, short x1, short y1)
|
|||||||
PNT f = log2dev(x0,y0);
|
PNT f = log2dev(x0,y0);
|
||||||
PNT t = log2dev(x1,y1);
|
PNT t = log2dev(x1,y1);
|
||||||
|
|
||||||
|
#if XVTWS != WMWS
|
||||||
if (f.h == 0) f.h = -CHARX; else f.h += CHARX>>1;
|
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 (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.h == 0) t.h = -CHARX; else t.h += CHARX>>1;
|
||||||
if (t.v == 0) t.v = -CHARY; else t.v += CHARY>>1;
|
if (t.v == 0) t.v = -CHARY; else t.v += CHARY>>1;
|
||||||
|
#endif
|
||||||
|
|
||||||
win_move_to(_win, f);
|
win_move_to(_win, f);
|
||||||
win_draw_line(_win, t);
|
win_draw_line(_win, t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user