From c51ae8d1c1b10cdaa8453e17c1ab64b964d0dce2 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Fri, 22 Feb 2019 19:11:37 +0800 Subject: [PATCH] cleanup --- src/newgdi/drawtext.c | 4 +--- src/newgdi/glyph.c | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/newgdi/drawtext.c b/src/newgdi/drawtext.c index 6b58d947..0c7cc850 100644 --- a/src/newgdi/drawtext.c +++ b/src/newgdi/drawtext.c @@ -480,15 +480,13 @@ int DrawTextEx2 (HDC hdc, const char* pText, int nCount, if (nFormat & DT_RIGHT) { x = rcDraw.right; old_ta = SetTextAlign(hdc, TA_RIGHT); - _ERR_PRINTF("%s: SetTextAlign(TA_RIGHT) called, pdc->ta_flags(%x)\n", - __FUNCTION__, pdc->ta_flags); } else { old_ta = SetTextAlign(hdc, TA_LEFT); x = rcDraw.left; } - if(nFormat & DT_CALCRECT){ + if (nFormat & DT_CALCRECT) { *pRect = rcDraw; NormalizeRect (pRect); pRect->top = y; diff --git a/src/newgdi/glyph.c b/src/newgdi/glyph.c index 6c465ec1..f40601b5 100644 --- a/src/newgdi/glyph.c +++ b/src/newgdi/glyph.c @@ -2351,9 +2351,6 @@ int _font_get_glyph_advance (LOGFONT* logfont, DEVFONT* devfont, if (bbox) bbox->x -= (bold + ch_extra + adv_len); } - _ERR_PRINTF("_font_get_glyph_advance: direction(%s)\n", - direction?"LTR":"RTL"); - if (direction) { tmp_x += bold + ch_extra; if (adv_x) *adv_x = tmp_x - x;