mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-27 13:14:26 -04:00
[loc] fix RTL display for the Info box
* Another issue from #621 * Also add ETO_NUMERICSLOCAL flag
This commit is contained in:
parent
c461cc8148
commit
36bf6c7036
2 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue