Module: wine Branch: master Commit: 29b29eddcccaefffd7c7a714d2a2c16a92fe948a URL: https://gitlab.winehq.org/wine/wine/-/commit/29b29eddcccaefffd7c7a714d2a2c16...
Author: Kevin Schmidt kevin@imkx.dev Date: Sun Jun 18 19:58:25 2023 +0200
taskmgr: Use macro for the color black too.
---
programs/taskmgr/graph.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c index 4d04017e331..44522ddf307 100644 --- a/programs/taskmgr/graph.c +++ b/programs/taskmgr/graph.c @@ -32,9 +32,10 @@ #include "taskmgr.h" #include "perfdata.h"
-#define BRIGHT_GREEN RGB(0, 255, 0) -#define DARK_GREEN RGB(0, 130, 0) -#define RED RGB(255, 0, 0) +#define BRIGHT_GREEN RGB(0, 255, 0) +#define DARK_GREEN RGB(0, 130, 0) +#define RED RGB(255, 0, 0) +#define BLACK RGB(0, 0, 0)
WNDPROC OldGraphWndProc; @@ -69,7 +70,7 @@ static void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd) /* * Fill it with blackness */ - FillSolidRect(hDC, &rcClient, RGB(0, 0, 0)); + FillSolidRect(hDC, &rcClient, BLACK);
/* * Get the CPU usage @@ -248,7 +249,7 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd) /* * Fill it with blackness */ - FillSolidRect(hDC, &rcClient, RGB(0, 0, 0)); + FillSolidRect(hDC, &rcClient, BLACK);
/* * Get the memory usage @@ -344,7 +345,7 @@ static void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd) /* * Fill it with blackness */ - FillSolidRect(hDC, &rcClient, RGB(0, 0, 0)); + FillSolidRect(hDC, &rcClient, BLACK);
/* * Draw the graph background