This commit is contained in:
Vincent Wei
2019-02-22 19:11:37 +08:00
parent b8a5ad2d73
commit c51ae8d1c1
2 changed files with 1 additions and 6 deletions
+1 -3
View File
@@ -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;
-3
View File
@@ -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;