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,7 +1672,10 @@ HICON GenerateBadgeIcon(HWND hWnd, int count)
|
|||||||
SetBkMode(hdcMem, TRANSPARENT); //Make font background transparent
|
SetBkMode(hdcMem, TRANSPARENT); //Make font background transparent
|
||||||
|
|
||||||
//Draw numbers
|
//Draw numbers
|
||||||
TextOut(hdcMem, 0, 0, countWStr, lstrlen(countWStr));
|
if (count < 10)
|
||||||
|
TextOut(hdcMem, 16 / 4, 0, countWStr, lstrlen(countWStr));
|
||||||
|
else
|
||||||
|
TextOut(hdcMem, 0, 0, countWStr, lstrlen(countWStr));
|
||||||
|
|
||||||
SelectObject(hdc, hOldBitmap);
|
SelectObject(hdc, hOldBitmap);
|
||||||
hOldBitmap = NULL;
|
hOldBitmap = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user