mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 13:44:15 -04:00
[ui] fix Info box display
* Text artifacts were being left due to not filling the background * Also add Danish to the list of languages for which we lost a translator :(
This commit is contained in:
parent
1c322aba56
commit
9fef4065b4
3 changed files with 11 additions and 9 deletions
|
@ -1514,6 +1514,8 @@ static INT_PTR CALLBACK InfoCallback(HWND hCtrl, UINT message, WPARAM wParam, LP
|
|||
SetBkColor(hdc, GetSysColor(COLOR_BTNFACE));
|
||||
SetTextAlign(hdc , TA_CENTER | TA_BASELINE);
|
||||
GetClientRect(hCtrl , &rect);
|
||||
// If you don't fill the client area, you get leftover text artifacts
|
||||
FillRect(hdc, &rect, CreateSolidBrush(GetSysColor(COLOR_BTNFACE)));
|
||||
TextOutW(hdc, rect.right/2, rect.bottom/2 + (int)(5.0f * fScale), winfo, (int)wcslen(winfo));
|
||||
EndPaint(hCtrl, &ps);
|
||||
return (INT_PTR)TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue