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
8a0dab38
Commit
8a0dab38
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: Clamp hue and saturation when clicking in colour graph in colour dialog.
parent
19ed5849
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
colordlg.c
dlls/comdlg32/colordlg.c
+10
-5
No files found.
dlls/comdlg32/colordlg.c
View file @
8a0dab38
...
@@ -337,8 +337,10 @@ static int CC_MouseCheckColorGraph( HWND hDlg, int dlgitem, int *hori, int *vert
...
@@ -337,8 +337,10 @@ static int CC_MouseCheckColorGraph( HWND hDlg, int dlgitem, int *hori, int *vert
ClientToScreen
(
hDlg
,
&
point
);
ClientToScreen
(
hDlg
,
&
point
);
hwnd
=
GetDlgItem
(
hDlg
,
dlgitem
);
hwnd
=
GetDlgItem
(
hDlg
,
dlgitem
);
GetWindowRect
(
hwnd
,
&
rect
);
GetWindowRect
(
hwnd
,
&
rect
);
if
(
PtInRect
(
&
rect
,
point
))
{
if
(
!
PtInRect
(
&
rect
,
point
))
return
0
;
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
ScreenToClient
(
hwnd
,
&
point
);
ScreenToClient
(
hwnd
,
&
point
);
...
@@ -347,14 +349,17 @@ static int CC_MouseCheckColorGraph( HWND hDlg, int dlgitem, int *hori, int *vert
...
@@ -347,14 +349,17 @@ static int CC_MouseCheckColorGraph( HWND hDlg, int dlgitem, int *hori, int *vert
y
=
(
long
)
(
rect
.
bottom
-
point
.
y
)
*
MAXVERT
;
y
=
(
long
)
(
rect
.
bottom
-
point
.
y
)
*
MAXVERT
;
y
/=
rect
.
bottom
;
y
/=
rect
.
bottom
;
if
(
x
<
0
)
x
=
0
;
if
(
y
<
0
)
y
=
0
;
if
(
x
>
MAXHORI
)
x
=
MAXHORI
;
if
(
y
>
MAXVERT
)
y
=
MAXVERT
;
if
(
hori
)
if
(
hori
)
*
hori
=
x
;
*
hori
=
x
;
if
(
vert
)
if
(
vert
)
*
vert
=
y
;
*
vert
=
y
;
return
1
;
return
1
;
}
else
return
0
;
}
}
/***********************************************************************
/***********************************************************************
* CC_MouseCheckResultWindow [internal]
* CC_MouseCheckResultWindow [internal]
...
...
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