From e83ffc1bdb3b25690a11d3e41f6419b72ed2309c Mon Sep 17 00:00:00 2001 From: GamesTrap Date: Sun, 5 Mar 2023 02:11:26 +0100 Subject: [PATCH] Added ellipsis --- src/win32_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index b83aefc7..e2595895 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1668,9 +1668,17 @@ HICON GenerateBadgeIcon(HWND hWnd, int count) ReleaseDC(hWnd, hdc); hOldBitmap = (HBITMAP)SelectObject(hdcMem, hBitmap); + //PatBlt(hdcMem, 0, 0, 16, 16, BLACKNESS); + SelectObject(hdcMem, CreateSolidBrush(RGB(0x26, 0x25, 0x2D))); + Ellipse(hdcMem, 0, 0, 15, 15); + SelectObject(hdcMem, CreateSolidBrush(RGB(255, 255, 255))); + SetTextColor(hdcMem, RGB(255, 255, 255)); //Use white text color SetBkMode(hdcMem, TRANSPARENT); //Make font background transparent + //TODO Custom Segoe UI Font + //TODO Transparency (cull outside of circle) + //Draw numbers if (count < 10) TextOut(hdcMem, 16 / 4, 0, countWStr, lstrlen(countWStr));