Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
76f22c11
Commit
76f22c11
authored
Apr 15, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow resizing of video when autofit is enabled
parent
5e0dd9dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+27
-0
No files found.
modules/gui/wxwindows/interface.cpp
View file @
76f22c11
...
@@ -694,11 +694,24 @@ void Interface::ShowSlider(bool show, bool layout)
...
@@ -694,11 +694,24 @@ void Interface::ShowSlider(bool show, bool layout)
m_slider_timer
.
Stop
();
m_slider_timer
.
Stop
();
m_controls_timer
.
Stop
();
m_controls_timer
.
Stop
();
//prevent continuous layout
if
(
slider_frame
->
IsShown
())
{
return
;
}
slider_frame
->
Show
();
slider_frame
->
Show
();
frame_sizer
->
Show
(
slider_frame
);
frame_sizer
->
Show
(
slider_frame
);
}
}
else
else
{
{
//prevent continuous layout
if
(
!
slider_frame
->
IsShown
())
{
return
;
}
slider_frame
->
Hide
();
slider_frame
->
Hide
();
frame_sizer
->
Hide
(
slider_frame
);
frame_sizer
->
Hide
(
slider_frame
);
}
}
...
@@ -727,11 +740,24 @@ void Interface::ShowDiscFrame(bool show, bool layout)
...
@@ -727,11 +740,24 @@ void Interface::ShowDiscFrame(bool show, bool layout)
//prevent the hide timer from hiding it now
//prevent the hide timer from hiding it now
m_controls_timer
.
Stop
();
m_controls_timer
.
Stop
();
//prevent continuous layout
if
(
disc_frame
->
IsShown
())
{
return
;
}
disc_frame
->
Show
();
disc_frame
->
Show
();
slider_sizer
->
Show
(
disc_frame
);
slider_sizer
->
Show
(
disc_frame
);
}
}
else
else
{
{
//prevent continuous layout
if
(
!
disc_frame
->
IsShown
())
{
return
;
}
disc_frame
->
Hide
();
disc_frame
->
Hide
();
slider_sizer
->
Hide
(
disc_frame
);
slider_sizer
->
Hide
(
disc_frame
);
}
}
...
@@ -763,6 +789,7 @@ void Interface::OnControlsTimer(wxTimerEvent& WXUNUSED(event))
...
@@ -763,6 +789,7 @@ void Interface::OnControlsTimer(wxTimerEvent& WXUNUSED(event))
if
(
size_to_video
)
if
(
size_to_video
)
{
{
slider_sizer
->
Fit
(
slider_frame
);
slider_sizer
->
Fit
(
slider_frame
);
frame_sizer
->
Fit
(
this
);
}
}
}
}
...
...
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