Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
126c2dec
Commit
126c2dec
authored
Mar 30, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: correct the size behaviour when zoom is called
parent
de1d714f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+5
-2
No files found.
modules/gui/qt4/main_interface.cpp
View file @
126c2dec
...
@@ -587,8 +587,9 @@ void MainInterface::getVideoSlot( WId *p_id, int *pi_x, int *pi_y,
...
@@ -587,8 +587,9 @@ void MainInterface::getVideoSlot( WId *p_id, int *pi_x, int *pi_y,
*
p_id
=
ret
;
*
p_id
=
ret
;
if
(
ret
)
/* The videoWidget is available */
if
(
ret
)
/* The videoWidget is available */
{
{
/* ask videoWidget to show */
/* Ask videoWidget to resize correctly, if we are in normal mode */
videoWidget
->
SetSizing
(
*
pi_width
,
*
pi_height
);
if
(
!
isFullScreen
()
&&
!
isMaximized
()
)
videoWidget
->
SetSizing
(
*
pi_width
,
*
pi_height
);
/* Consider the video active now */
/* Consider the video active now */
showVideo
();
showVideo
();
...
@@ -621,6 +622,8 @@ int MainInterface::controlVideo( int i_query, va_list args )
...
@@ -621,6 +622,8 @@ int MainInterface::controlVideo( int i_query, va_list args )
{
{
unsigned
int
i_width
=
va_arg
(
args
,
unsigned
int
);
unsigned
int
i_width
=
va_arg
(
args
,
unsigned
int
);
unsigned
int
i_height
=
va_arg
(
args
,
unsigned
int
);
unsigned
int
i_height
=
va_arg
(
args
,
unsigned
int
);
if
(
isFullScreen
()
||
isMaximized
()
)
showNormal
();
emit
askVideoToResize
(
i_width
,
i_height
);
emit
askVideoToResize
(
i_width
,
i_height
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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