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
d1f8eb49
Commit
d1f8eb49
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Fix incorrect use of the ScreenToClient function.
parent
22b7fedf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
winefile.c
programs/winefile/winefile.c
+2
-4
No files found.
programs/winefile/winefile.c
View file @
d1f8eb49
...
@@ -2019,8 +2019,7 @@ static BOOL toggle_fullscreen(HWND hwnd)
...
@@ -2019,8 +2019,7 @@ static BOOL toggle_fullscreen(HWND hwnd)
g_fullscreen
.
wasZoomed
=
IsZoomed
(
hwnd
);
g_fullscreen
.
wasZoomed
=
IsZoomed
(
hwnd
);
Frame_CalcFrameClient
(
hwnd
,
&
rt
);
Frame_CalcFrameClient
(
hwnd
,
&
rt
);
ClientToScreen
(
hwnd
,
(
LPPOINT
)
&
rt
.
left
);
MapWindowPoints
(
hwnd
,
0
,
(
POINT
*
)
&
rt
,
2
);
ClientToScreen
(
hwnd
,
(
LPPOINT
)
&
rt
.
right
);
rt
.
left
=
g_fullscreen
.
orgPos
.
left
-
rt
.
left
;
rt
.
left
=
g_fullscreen
.
orgPos
.
left
-
rt
.
left
;
rt
.
top
=
g_fullscreen
.
orgPos
.
top
-
rt
.
top
;
rt
.
top
=
g_fullscreen
.
orgPos
.
top
-
rt
.
top
;
...
@@ -2046,8 +2045,7 @@ static void fullscreen_move(HWND hwnd)
...
@@ -2046,8 +2045,7 @@ static void fullscreen_move(HWND hwnd)
GetWindowRect
(
hwnd
,
&
pos
);
GetWindowRect
(
hwnd
,
&
pos
);
Frame_CalcFrameClient
(
hwnd
,
&
rt
);
Frame_CalcFrameClient
(
hwnd
,
&
rt
);
ClientToScreen
(
hwnd
,
(
LPPOINT
)
&
rt
.
left
);
MapWindowPoints
(
hwnd
,
0
,
(
POINT
*
)
&
rt
,
2
);
ClientToScreen
(
hwnd
,
(
LPPOINT
)
&
rt
.
right
);
rt
.
left
=
pos
.
left
-
rt
.
left
;
rt
.
left
=
pos
.
left
-
rt
.
left
;
rt
.
top
=
pos
.
top
-
rt
.
top
;
rt
.
top
=
pos
.
top
-
rt
.
top
;
...
...
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