Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
29b29edd
Commit
29b29edd
authored
Jun 18, 2023
by
Kevin Schmidt
Committed by
Alexandre Julliard
Jul 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Use macro for the color black too.
parent
eee640c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
graph.c
programs/taskmgr/graph.c
+7
-6
No files found.
programs/taskmgr/graph.c
View file @
29b29edd
...
@@ -32,9 +32,10 @@
...
@@ -32,9 +32,10 @@
#include "taskmgr.h"
#include "taskmgr.h"
#include "perfdata.h"
#include "perfdata.h"
#define BRIGHT_GREEN RGB(0, 255, 0)
#define BRIGHT_GREEN RGB(0, 255, 0)
#define DARK_GREEN RGB(0, 130, 0)
#define DARK_GREEN RGB(0, 130, 0)
#define RED RGB(255, 0, 0)
#define RED RGB(255, 0, 0)
#define BLACK RGB(0, 0, 0)
WNDPROC
OldGraphWndProc
;
WNDPROC
OldGraphWndProc
;
...
@@ -69,7 +70,7 @@ static void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
...
@@ -69,7 +70,7 @@ static void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
/*
/*
* Fill it with blackness
* Fill it with blackness
*/
*/
FillSolidRect
(
hDC
,
&
rcClient
,
RGB
(
0
,
0
,
0
)
);
FillSolidRect
(
hDC
,
&
rcClient
,
BLACK
);
/*
/*
* Get the CPU usage
* Get the CPU usage
...
@@ -248,7 +249,7 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
...
@@ -248,7 +249,7 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
/*
/*
* Fill it with blackness
* Fill it with blackness
*/
*/
FillSolidRect
(
hDC
,
&
rcClient
,
RGB
(
0
,
0
,
0
)
);
FillSolidRect
(
hDC
,
&
rcClient
,
BLACK
);
/*
/*
* Get the memory usage
* Get the memory usage
...
@@ -344,7 +345,7 @@ static void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
...
@@ -344,7 +345,7 @@ static void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
/*
/*
* Fill it with blackness
* Fill it with blackness
*/
*/
FillSolidRect
(
hDC
,
&
rcClient
,
RGB
(
0
,
0
,
0
)
);
FillSolidRect
(
hDC
,
&
rcClient
,
BLACK
);
/*
/*
* Draw the graph background
* Draw the graph background
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment