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
ff068c08
Commit
ff068c08
authored
Oct 25, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Properly handle negative coordinates for mouse events.
parent
33b34661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
control.c
dlls/shell32/control.c
+2
-2
No files found.
dlls/shell32/control.c
View file @
ff068c08
...
...
@@ -163,7 +163,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTA* cs)
#define YICON 32
#define YSTEP 64
static
BOOL
Control_Localize
(
const
CPanel
*
panel
,
unsigned
cx
,
unsigned
cy
,
static
BOOL
Control_Localize
(
const
CPanel
*
panel
,
int
cx
,
int
cy
,
CPlApplet
**
papplet
,
unsigned
*
psp
)
{
unsigned
i
,
x
=
(
XSTEP
-
XICON
)
/
2
,
y
=
0
;
...
...
@@ -228,7 +228,7 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up)
unsigned
i
;
CPlApplet
*
applet
;
if
(
Control_Localize
(
panel
,
LOWORD
(
lParam
),
HIWORD
(
lParam
),
&
applet
,
&
i
))
{
if
(
Control_Localize
(
panel
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
),
&
applet
,
&
i
))
{
if
(
up
)
{
if
(
panel
->
clkApplet
==
applet
&&
panel
->
clkSP
==
i
)
{
applet
->
proc
(
applet
->
hWnd
,
CPL_DBLCLK
,
i
,
applet
->
info
[
i
].
lData
);
...
...
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