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
4d7ac46b
Commit
4d7ac46b
authored
Apr 05, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Get rid of the "width" and "height" fields of video_window.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53e842c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
quartz_private.h
dlls/quartz/quartz_private.h
+0
-1
window.c
dlls/quartz/window.c
+14
-14
No files found.
dlls/quartz/quartz_private.h
View file @
4d7ac46b
...
...
@@ -92,7 +92,6 @@ struct video_window
IVideoWindow
IVideoWindow_iface
;
HWND
hwnd
;
LONG
width
,
height
;
BOOL
AutoShow
;
HWND
hwndDrain
;
HWND
hwndOwner
;
...
...
dlls/quartz/window.c
View file @
4d7ac46b
...
...
@@ -70,9 +70,6 @@ static LRESULT CALLBACK WndProcW(HWND hwnd, UINT message, WPARAM wparam, LPARAM
case
WM_SIZE
:
if
(
window
->
ops
->
resize
)
return
window
->
ops
->
resize
(
window
,
LOWORD
(
lparam
),
HIWORD
(
lparam
));
window
->
width
=
LOWORD
(
lparam
);
window
->
height
=
HIWORD
(
lparam
);
}
return
DefWindowProcW
(
hwnd
,
message
,
wparam
,
lparam
);
...
...
@@ -370,24 +367,27 @@ HRESULT WINAPI BaseControlWindowImpl_get_Left(IVideoWindow *iface, LONG *left)
HRESULT
WINAPI
BaseControlWindowImpl_put_Width
(
IVideoWindow
*
iface
,
LONG
width
)
{
struct
video_window
*
window
=
impl_from_IVideoWindow
(
iface
);
RECT
rect
;
TRACE
(
"window %p, width %d.
\n
"
,
window
,
width
);
if
(
!
SetWindowPos
(
window
->
hwnd
,
NULL
,
0
,
0
,
width
,
window
->
height
,
GetWindowRect
(
window
->
hwnd
,
&
rect
);
if
(
!
SetWindowPos
(
window
->
hwnd
,
NULL
,
0
,
0
,
width
,
rect
.
bottom
-
rect
.
top
,
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_NOMOVE
))
return
E_FAIL
;
window
->
width
=
width
;
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_get_Width
(
IVideoWindow
*
iface
,
LONG
*
width
)
{
struct
video_window
*
window
=
impl_from_IVideoWindow
(
iface
);
RECT
rect
;
TRACE
(
"window %p, width %p.
\n
"
,
window
,
width
);
*
width
=
window
->
width
;
GetWindowRect
(
window
->
hwnd
,
&
rect
);
*
width
=
rect
.
right
-
rect
.
left
;
return
S_OK
;
}
...
...
@@ -421,24 +421,27 @@ HRESULT WINAPI BaseControlWindowImpl_get_Top(IVideoWindow *iface, LONG *top)
HRESULT
WINAPI
BaseControlWindowImpl_put_Height
(
IVideoWindow
*
iface
,
LONG
height
)
{
struct
video_window
*
window
=
impl_from_IVideoWindow
(
iface
);
RECT
rect
;
TRACE
(
"window %p, height %d.
\n
"
,
window
,
height
);
if
(
!
SetWindowPos
(
window
->
hwnd
,
NULL
,
0
,
0
,
window
->
width
,
GetWindowRect
(
window
->
hwnd
,
&
rect
);
if
(
!
SetWindowPos
(
window
->
hwnd
,
NULL
,
0
,
0
,
rect
.
right
-
rect
.
left
,
height
,
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_NOMOVE
))
return
E_FAIL
;
window
->
height
=
height
;
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_get_Height
(
IVideoWindow
*
iface
,
LONG
*
height
)
{
struct
video_window
*
window
=
impl_from_IVideoWindow
(
iface
);
RECT
rect
;
TRACE
(
"window %p, height %p.
\n
"
,
window
,
height
);
*
height
=
window
->
height
;
GetWindowRect
(
window
->
hwnd
,
&
rect
);
*
height
=
rect
.
bottom
-
rect
.
top
;
return
S_OK
;
}
...
...
@@ -555,9 +558,6 @@ HRESULT WINAPI BaseControlWindowImpl_SetWindowPosition(IVideoWindow *iface,
if
(
!
SetWindowPos
(
window
->
hwnd
,
NULL
,
left
,
top
,
width
,
height
,
SWP_NOACTIVATE
|
SWP_NOZORDER
))
return
E_FAIL
;
window
->
width
=
width
;
window
->
height
=
height
;
return
S_OK
;
}
...
...
@@ -572,8 +572,8 @@ HRESULT WINAPI BaseControlWindowImpl_GetWindowPosition(IVideoWindow *iface,
GetWindowRect
(
window
->
hwnd
,
&
rect
);
*
left
=
rect
.
left
;
*
top
=
rect
.
top
;
*
width
=
window
->
width
;
*
height
=
window
->
height
;
*
width
=
rect
.
right
-
rect
.
left
;
*
height
=
rect
.
bottom
-
rect
.
top
;
return
S_OK
;
}
...
...
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