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
155d320a
Commit
155d320a
authored
Jan 07, 2008
by
Divan Burger
Committed by
Alexandre Julliard
Jan 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Modernize the look of the luminance bar in the colour dialog.
parent
8a0dab38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
colordlg.c
dlls/comdlg32/colordlg.c
+7
-2
No files found.
dlls/comdlg32/colordlg.c
View file @
155d320a
...
...
@@ -463,7 +463,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
{
HDC
hDC
;
long
temp
;
int
w
=
LOWORD
(
GetDialogBaseUnits
());
int
w
=
LOWORD
(
GetDialogBaseUnits
())
/
2
;
POINT
points
[
3
];
int
height
;
int
oben
;
...
...
@@ -484,6 +484,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
oben
=
points
[
0
].
y
;
/* | \ | */
/* | \| */
temp
=
(
long
)
height
*
(
long
)
y
;
points
[
0
].
x
+=
1
;
points
[
0
].
y
=
oben
+
height
-
temp
/
(
long
)
MAXVERT
;
points
[
1
].
y
=
points
[
0
].
y
+
w
;
points
[
2
].
y
=
points
[
0
].
y
-
w
;
...
...
@@ -496,7 +497,11 @@ void CC_PaintTriangle( HWND hDlg, int y)
lpp
->
old3angle
.
right
=
points
[
1
].
x
+
1
;
lpp
->
old3angle
.
top
=
points
[
2
].
y
-
1
;
lpp
->
old3angle
.
bottom
=
points
[
1
].
y
+
1
;
hbr
=
SelectObject
(
hDC
,
GetStockObject
(
BLACK_BRUSH
));
Polygon
(
hDC
,
points
,
3
);
SelectObject
(
hDC
,
hbr
);
ReleaseDC
(
hDlg
,
hDC
);
}
}
...
...
@@ -647,7 +652,7 @@ static void CC_PaintLumBar( HWND hDlg, int hue, int sat )
rect
.
bottom
=
rect
.
top
;
}
GetClientRect
(
hwnd
,
&
rect
);
FrameRect
(
hDC
,
&
rect
,
GetStockObject
(
BLACK_BRUSH
)
);
DrawEdge
(
hDC
,
&
rect
,
BDR_SUNKENOUTER
,
BF_RECT
);
ReleaseDC
(
hwnd
,
hDC
);
}
}
...
...
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