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
285c9fc6
Commit
285c9fc6
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 colour graph's cross in the colour dialog.
parent
155d320a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
colordlg.c
dlls/comdlg32/colordlg.c
+11
-4
No files found.
dlls/comdlg32/colordlg.c
View file @
285c9fc6
...
...
@@ -513,7 +513,8 @@ void CC_PaintTriangle( HWND hDlg, int y)
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
)
{
HDC
hDC
;
int
w
=
GetDialogBaseUnits
();
int
w
=
GetDialogBaseUnits
()
-
1
;
int
wc
=
GetDialogBaseUnits
()
*
3
/
4
;
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
LPCCPRIV
lpp
=
(
LPCCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
RECT
rect
;
...
...
@@ -525,8 +526,7 @@ void CC_PaintCross( HWND hDlg, int x, int y)
GetClientRect
(
hwnd
,
&
rect
);
hDC
=
GetDC
(
hwnd
);
SelectClipRgn
(
hDC
,
CreateRectRgnIndirect
(
&
rect
));
hPen
=
CreatePen
(
PS_SOLID
,
2
,
0xffffff
);
/* -white- color */
hPen
=
SelectObject
(
hDC
,
hPen
);
point
.
x
=
((
long
)
rect
.
right
*
(
long
)
x
)
/
(
long
)
MAXHORI
;
point
.
y
=
rect
.
bottom
-
((
long
)
rect
.
bottom
*
(
long
)
y
)
/
(
long
)
MAXVERT
;
if
(
lpp
->
oldcross
.
left
!=
lpp
->
oldcross
.
right
)
...
...
@@ -539,11 +539,18 @@ void CC_PaintCross( HWND hDlg, int x, int y)
lpp
->
oldcross
.
top
=
point
.
y
-
w
-
1
;
lpp
->
oldcross
.
bottom
=
point
.
y
+
w
+
1
;
hPen
=
CreatePen
(
PS_SOLID
,
3
,
0x000000
);
/* -black- color */
hPen
=
SelectObject
(
hDC
,
hPen
);
MoveToEx
(
hDC
,
point
.
x
-
w
,
point
.
y
,
&
p
);
LineTo
(
hDC
,
point
.
x
-
wc
,
point
.
y
);
MoveToEx
(
hDC
,
point
.
x
+
wc
,
point
.
y
,
&
p
);
LineTo
(
hDC
,
point
.
x
+
w
,
point
.
y
);
MoveToEx
(
hDC
,
point
.
x
,
point
.
y
-
w
,
&
p
);
LineTo
(
hDC
,
point
.
x
,
point
.
y
-
wc
);
MoveToEx
(
hDC
,
point
.
x
,
point
.
y
+
wc
,
&
p
);
LineTo
(
hDC
,
point
.
x
,
point
.
y
+
w
);
DeleteObject
(
SelectObject
(
hDC
,
hPen
))
;
DeleteObject
(
SelectObject
(
hDC
,
hPen
));
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