Revision: 10728 https://osdn.net/projects/ttssh2/scm/svn/commits/10728 Author: zmatsuo Date: 2023-06-04 01:45:56 +0900 (Sun, 04 Jun 2023) Log Message: ----------- デバグ用文字描画範囲の表示が誤っていたので修正 Modified Paths: -------------- trunk/teraterm/teraterm/vtdisp.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtdisp.c =================================================================== --- trunk/teraterm/teraterm/vtdisp.c 2023-06-02 16:56:03 UTC (rev 10727) +++ trunk/teraterm/teraterm/vtdisp.c 2023-06-03 16:45:56 UTC (rev 10728) @@ -1411,6 +1411,8 @@ */ static void DrawBox(HDC hdc, int sx, int sy, int width, int height, COLORREF rgb) { + width--; + height--; HPEN red_pen = CreatePen(PS_SOLID, 0, rgb); HGDIOBJ old_pen = SelectObject(hdc, red_pen); MoveToEx(hdc, sx, sy, NULL); @@ -2819,11 +2821,11 @@ BitBlt(DC, *X, Y, width, height, BGDC, 0, 0, SRCCOPY); } - *X += width; - if (w->debug_drawbox_text) { DrawBox(DC, *X, Y, width, height, RGB(0,255,0)); } + + *X += width; } /**