Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
24333569
Commit
24333569
authored
Jan 16, 2014
by
Adi Shavit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes: typo, spacing and using ::ScreenToClient() instead of ::GetWindowRect()
parent
e45cf217
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
highgui.hpp
modules/highgui/include/opencv2/highgui.hpp
+3
-3
window_w32.cpp
modules/highgui/src/window_w32.cpp
+4
-8
No files found.
modules/highgui/include/opencv2/highgui.hpp
View file @
24333569
...
...
@@ -76,9 +76,9 @@ enum { EVENT_MOUSEMOVE = 0,
EVENT_MBUTTONUP
=
6
,
EVENT_LBUTTONDBLCLK
=
7
,
EVENT_RBUTTONDBLCLK
=
8
,
EVENT_MBUTTONDBLCLK
=
9
,
EVENT_MOUSEWHEEL
=
10
,
EVENT_MOUSEHWHEEL
=
11
EVENT_MBUTTONDBLCLK
=
9
,
EVENT_MOUSEWHEEL
=
10
,
EVENT_MOUSEHWHEEL
=
11
};
enum
{
EVENT_FLAG_LBUTTON
=
1
,
...
...
modules/highgui/src/window_w32.cpp
View file @
24333569
...
...
@@ -40,7 +40,7 @@
//M*/
#include "precomp.hpp"
#include <windowsx.h> // required for GET_X_LPARAM() and GET_Y_LPARAM() ma
rco
#include <windowsx.h> // required for GET_X_LPARAM() and GET_Y_LPARAM() ma
cros
#if defined WIN32 || defined _WIN32
...
...
@@ -1395,13 +1395,9 @@ MainWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
flags
|=
(
delta
<<
16
);
POINT
pt
;
{
// since The coordinates are relative to screen so get screen size.
RECT
windowRect
;
::
GetWindowRect
(
window
->
hwnd
,
&
windowRect
);
pt
.
x
=
GET_X_LPARAM
(
lParam
)
-
windowRect
.
left
;
pt
.
y
=
GET_Y_LPARAM
(
lParam
)
-
windowRect
.
top
;
}
pt
.
x
=
GET_X_LPARAM
(
lParam
);
pt
.
y
=
GET_Y_LPARAM
(
lParam
);
::
ScreenToClient
(
hwnd
,
&
pt
);
// Convert screen coordinates to client coordinates.
RECT
rect
;
GetClientRect
(
window
->
hwnd
,
&
rect
);
...
...
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