[loc] fix RTL display for the Info box

* Another issue from #621
* Also add ETO_NUMERICSLOCAL flag
This commit is contained in:
Pete Batard 2015-10-22 18:25:40 +01:00
parent c461cc8148
commit 36bf6c7036
2 changed files with 8 additions and 6 deletions

View file

@ -1616,7 +1616,9 @@ static INT_PTR CALLBACK InfoCallback(HWND hCtrl, UINT message, WPARAM wParam, LP
GetClientRect(hCtrl , &rect);
// If you don't fill the client area, you get leftover text artifacts
FillRect(hdc, &rect, hInfoBrush);
ExtTextOutW(hdc, rect.right/2, rect.bottom/2 + (int)(5.0f * fScale), ETO_CLIPPED, &rect, winfo, (int)wcslen(winfo), NULL);
ExtTextOutW(hdc, rect.right/2, rect.bottom/2 + (int)(5.0f * fScale),
ETO_CLIPPED | ETO_NUMERICSLOCAL | (right_to_left_mode?ETO_RTLREADING:0),
&rect, winfo, (int)wcslen(winfo), NULL);
EndPaint(hCtrl, &ps);
return (INT_PTR)TRUE;
}