From 9e3a3317ecc364296a6a8b05c20a7fc19826e22d Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 29 Dec 2010 22:38:36 +0000 Subject: [PATCH] Move some not-compiled-in debug code somewhere more useful. git-svn-id: svn://svn.tartarus.org/sgt/putty@9065 cda61777-01e9-0310-a592-d414129be87e --- windows/window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/windows/window.c b/windows/window.c index 9060bd10..42ea436d 100644 --- a/windows/window.c +++ b/windows/window.c @@ -1326,6 +1326,10 @@ debug(("\n rect: [%d,%d %d,%d]\n", newrc.left, newrc.top, newrc.right, exact_textout(hdc, xp, y, &newrc, lpString+i, j-i, font_varpitch ? NULL : lpDx+i, opaque); } else { + newrc.left = lprc->left + xp - x; + newrc.right = lprc->left + xn - x; + newrc.top = lprc->top; + newrc.bottom = lprc->bottom; #ifdef FIXME_REMOVE_BEFORE_CHECKIN { int k; @@ -1334,10 +1338,6 @@ for(k=0;kleft + xp - x; - newrc.right = lprc->left + xn - x; - newrc.top = lprc->top; - newrc.bottom = lprc->bottom; ExtTextOutW(hdc, xp, y, ETO_CLIPPED | (opaque ? ETO_OPAQUE : 0), &newrc, lpString+i, j-i, font_varpitch ? NULL : lpDx+i); -- 2.11.0