mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 19:13:46 +08:00
cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user