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
04dc2812
Commit
04dc2812
authored
Aug 18, 2022
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Aug 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Don't stretch video destination for a popup or child window.
parent
e28c2caa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
mciqtz.c
dlls/mciqtz32/mciqtz.c
+8
-3
mci.c
dlls/winmm/tests/mci.c
+2
-3
No files found.
dlls/mciqtz32/mciqtz.c
View file @
04dc2812
...
@@ -211,9 +211,14 @@ static bool create_window(WINE_MCIQTZ *wma, DWORD flags, const MCI_DGV_OPEN_PARM
...
@@ -211,9 +211,14 @@ static bool create_window(WINE_MCIQTZ *wma, DWORD flags, const MCI_DGV_OPEN_PARM
IVideoWindow_put_Owner
(
wma
->
vidwin
,
(
OAHWND
)
wma
->
window
);
IVideoWindow_put_Owner
(
wma
->
vidwin
,
(
OAHWND
)
wma
->
window
);
IVideoWindow_put_WindowStyle
(
wma
->
vidwin
,
WS_CHILD
);
/* reset window style */
IVideoWindow_put_WindowStyle
(
wma
->
vidwin
,
WS_CHILD
);
/* reset window style */
GetClientRect
(
wma
->
window
,
&
rc
);
if
(
style
&
(
WS_POPUP
|
WS_CHILD
))
width
=
rc
.
right
;
IBasicVideo_GetVideoSize
(
wma
->
vidbasic
,
&
width
,
&
height
);
height
=
rc
.
bottom
;
else
{
GetClientRect
(
wma
->
window
,
&
rc
);
width
=
rc
.
right
;
height
=
rc
.
bottom
;
}
IVideoWindow_SetWindowPosition
(
wma
->
vidwin
,
0
,
0
,
width
,
height
);
IVideoWindow_SetWindowPosition
(
wma
->
vidwin
,
0
,
0
,
width
,
height
);
IVideoWindow_put_Visible
(
wma
->
vidwin
,
OATRUE
);
IVideoWindow_put_Visible
(
wma
->
vidwin
,
OATRUE
);
...
...
dlls/winmm/tests/mci.c
View file @
04dc2812
...
@@ -1603,9 +1603,8 @@ static void test_video_window(void)
...
@@ -1603,9 +1603,8 @@ static void test_video_window(void)
* in particular if the video width is less than SM_CXMIN. */
* in particular if the video width is less than SM_CXMIN. */
GetClientRect
(
video_window
,
&
rc
);
GetClientRect
(
video_window
,
&
rc
);
todo_wine_if
(
style
&
(
WS_POPUP
|
WS_CHILD
))
ok
(
EqualRect
(
&
parm
.
where
.
rc
,
&
rc
),
"Got destination rect %s, expected %s.
\n
"
,
ok
(
EqualRect
(
&
parm
.
where
.
rc
,
&
rc
),
"Got destination rect %s, expected %s.
\n
"
,
wine_dbgstr_rect
(
&
parm
.
where
.
rc
),
wine_dbgstr_rect
(
&
rc
));
wine_dbgstr_rect
(
&
parm
.
where
.
rc
),
wine_dbgstr_rect
(
&
rc
));
/* Test the default video window size. */
/* Test the default video window size. */
rc
=
src_rc
;
rc
=
src_rc
;
...
...
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