mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Centered badge count when smaller than 10
This commit is contained in:
parent
5e8c055004
commit
2009465999
@ -1672,6 +1672,9 @@ HICON GenerateBadgeIcon(HWND hWnd, int count)
|
||||
SetBkMode(hdcMem, TRANSPARENT); //Make font background transparent
|
||||
|
||||
//Draw numbers
|
||||
if (count < 10)
|
||||
TextOut(hdcMem, 16 / 4, 0, countWStr, lstrlen(countWStr));
|
||||
else
|
||||
TextOut(hdcMem, 0, 0, countWStr, lstrlen(countWStr));
|
||||
|
||||
SelectObject(hdc, hOldBitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user