X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fcursesdsp.c;h=4e8bf6483d2afe4b02e450b2b913f7b3e090e20e;hp=127f6b41e426b6acd376da10e94a5fcb508556ff;hb=303a6fe3617e177e866e313f79fdccda829c2449;hpb=ff70bcfb13c2a38180a93d689baccd6828dfda90 diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 127f6b4..4e8bf64 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -64,6 +64,7 @@ int mycnt1, mycnt2; +#define MARGIN (4) #define TAB (58) #define VIR_C(s) ((flag.reverse) ? (NO_COLS - 1 - column(s)) : column(s)) @@ -770,7 +771,7 @@ DrawPiece(short sq) y = pxx[(int)piece]; } - gotoXY(8 + 5 * VIR_C(sq), 4 + 2 * ((NO_ROWS - 1) - VIR_R(sq))); + gotoXY(MARGIN + 3 + 5 * VIR_C(sq), 4 + 2 * ((NO_ROWS - 1) - VIR_R(sq))); printw("%c%c%c%c", l, p, y, r); } @@ -835,42 +836,41 @@ Curses_UpdateDisplay(short f, short t, short redraw, short isspec) ShowPlayers(); i = 2; - gotoXY(3, ++i); + gotoXY(MARGIN, ++i); - printw(" +"); + printw(" +"); for (j=0; j