From a1b0a11baae55dfdce3f651159825cd9c8b2015b Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 11 May 2006 03:00:50 +0000 Subject: [PATCH] minor fixes to drawing spacing (what I meant to check in) --- wince/cedraw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wince/cedraw.c b/wince/cedraw.c index 133e47356..4f10637b2 100755 --- a/wince/cedraw.c +++ b/wince/cedraw.c @@ -115,9 +115,10 @@ measureText( CEDrawCtx* dctx, const XP_UCHAR* str, XP_U16* widthP, XP_U16* heightP ) { HDC hdc = GetDC(dctx->mainWin);//globals->hdc; - XP_U16 height, maxWidth; + XP_U16 height = 0; + XP_U16 maxWidth = 0; - for ( height = 0, maxWidth = 0; ; ) { + for ( ; ; ) { wchar_t widebuf[64]; XP_UCHAR* nextStr = strstr( str, XP_CR ); XP_U16 len = nextStr==NULL? strlen(str): nextStr - str; @@ -141,7 +142,7 @@ measureText( CEDrawCtx* dctx, const XP_UCHAR* str, str = nextStr + XP_STRLEN(XP_CR); /* skip '\n' */ } - *widthP = maxWidth;// + 8; + *widthP = maxWidth + 8; *heightP = height; } @@ -602,7 +603,6 @@ DRAW_FUNC_NAME(measureRemText)( DrawCtx* p_dctx, const XP_Rect* r, formatRemText( hdc, nTilesLeft, dctx->scoreIsVertical, buf ); measureText( dctx, buf, width, height ); - XP_LOGF( "width(Rem) = %d", *width ); } /* ce_draw_measureRemText */ DLSTATIC void