Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b966b451
Commit
b966b451
authored
Dec 06, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: Use system colors instead of hardcoded RGB values.
parent
68953bc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
main.c
programs/clock/main.c
+1
-1
winclock.c
programs/clock/winclock.c
+5
-10
No files found.
programs/clock/main.c
View file @
b966b451
...
...
@@ -309,7 +309,7 @@ static VOID CLOCK_Paint(HWND hWnd)
SetViewportOrgEx
(
dcMem
,
-
ps
.
rcPaint
.
left
,
-
ps
.
rcPaint
.
top
,
NULL
);
/* Erase the background */
FillRect
(
dcMem
,
&
ps
.
rcPaint
,
GetS
tockObject
(
LTGRAY_BRUSH
));
FillRect
(
dcMem
,
&
ps
.
rcPaint
,
GetS
ysColorBrush
(
COLOR_3DFACE
));
if
(
Globals
.
bAnalog
)
AnalogClock
(
dcMem
,
Globals
.
MaxX
,
Globals
.
MaxY
,
Globals
.
bSeconds
,
Globals
.
bWithoutTitle
);
...
...
programs/clock/winclock.c
View file @
b966b451
...
...
@@ -32,16 +32,11 @@
#include "windows.h"
#include "winclock.h"
#define Black RGB(0,0,0)
#define Gray RGB(128,128,128)
#define LtGray RGB(192,192,192)
#define White RGB(255,255,255)
static
const
COLORREF
FaceColor
=
LtGray
;
static
const
COLORREF
HandColor
=
White
;
static
const
COLORREF
TickColor
=
White
;
static
const
COLORREF
ShadowColor
=
Black
;
static
const
COLORREF
BackgroundColor
=
LtGray
;
#define FaceColor (GetSysColor(COLOR_3DFACE))
#define HandColor (GetSysColor(COLOR_3DHIGHLIGHT))
#define TickColor (GetSysColor(COLOR_3DHIGHLIGHT))
#define ShadowColor (GetSysColor(COLOR_3DDKSHADOW))
#define BackgroundColor (GetSysColor(COLOR_3DFACE))
static
const
int
SHADOW_DEPTH
=
2
;
...
...
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