Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
68cb7744
Commit
68cb7744
authored
Jun 24, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resize the video to the normal size on launch
parent
14440202
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+5
-5
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
68cb7744
...
@@ -74,10 +74,9 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
...
@@ -74,10 +74,9 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
setAttribute
(
Qt
::
WA_PaintOnScreen
,
true
);
setAttribute
(
Qt
::
WA_PaintOnScreen
,
true
);
/* The core can ask through a callback to show the video. */
/* The core can ask through a callback to show the video. */
connect
(
this
,
SIGNAL
(
askVideoWidgetToShow
()),
this
,
SLOT
(
show
()),
Qt
::
BlockingQueuedConnection
);
connect
(
this
,
SIGNAL
(
askVideoWidgetToShow
(
unsigned
int
,
unsigned
int
)),
this
,
SLOT
(
SetSizing
(
unsigned
int
,
unsigned
int
)),
/* The core can ask through a callback to resize the video */
Qt
::
BlockingQueuedConnection
);
// CONNECT( this, askResize( int, int ), this, SetSizing( int, int ) );
}
}
void
VideoWidget
::
paintEvent
(
QPaintEvent
*
ev
)
void
VideoWidget
::
paintEvent
(
QPaintEvent
*
ev
)
...
@@ -115,7 +114,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
...
@@ -115,7 +114,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
)
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
)
{
{
msg_Dbg
(
p_intf
,
"Video was requested %i, %i"
,
*
pi_x
,
*
pi_y
);
msg_Dbg
(
p_intf
,
"Video was requested %i, %i"
,
*
pi_x
,
*
pi_y
);
emit
askVideoWidgetToShow
();
emit
askVideoWidgetToShow
(
*
pi_width
,
*
pi_height
);
if
(
p_vout
)
if
(
p_vout
)
{
{
msg_Dbg
(
p_intf
,
"embedded video already in use"
);
msg_Dbg
(
p_intf
,
"embedded video already in use"
);
...
@@ -134,6 +133,7 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h )
...
@@ -134,6 +133,7 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h )
msg_Dbg
(
p_intf
,
"Video is resizing to: %i %i"
,
w
,
h
);
msg_Dbg
(
p_intf
,
"Video is resizing to: %i %i"
,
w
,
h
);
videoSize
.
rwidth
()
=
w
;
videoSize
.
rwidth
()
=
w
;
videoSize
.
rheight
()
=
h
;
videoSize
.
rheight
()
=
h
;
if
(
isHidden
()
)
show
();
updateGeometry
();
// Needed for deinterlace
updateGeometry
();
// Needed for deinterlace
}
}
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
68cb7744
...
@@ -91,8 +91,7 @@ private:
...
@@ -91,8 +91,7 @@ private:
QSize
videoSize
;
QSize
videoSize
;
signals:
signals:
void
askVideoWidgetToShow
();
void
askVideoWidgetToShow
(
unsigned
int
,
unsigned
int
);
//void askResize();
public
slots
:
public
slots
:
void
SetSizing
(
unsigned
int
,
unsigned
int
);
void
SetSizing
(
unsigned
int
,
unsigned
int
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
68cb7744
...
@@ -692,7 +692,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
...
@@ -692,7 +692,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
#endif
#endif
videoIsActive
=
true
;
videoIsActive
=
true
;
emit
askVideoToResize
(
*
pi_width
,
*
pi_height
);
//
emit askVideoToResize( *pi_width, *pi_height );
emit
askUpdate
();
emit
askUpdate
();
fullscreenControls
->
regFullscreenCallback
(
p_nvout
);
fullscreenControls
->
regFullscreenCallback
(
p_nvout
);
...
...
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