[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:
Pete Batard 2015-02-09 13:36:03 +00:00
parent 1c322aba56
commit 9fef4065b4
3 changed files with 11 additions and 9 deletions

View file

@ -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;