Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2c98e728
Commit
2c98e728
authored
Apr 15, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows: save size of video window when in non-autosize mode.
parent
fb9552b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
modules/gui/wxwindows/video.cpp
modules/gui/wxwindows/video.cpp
+13
-0
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-0
No files found.
modules/gui/wxwindows/video.cpp
View file @
2c98e728
...
...
@@ -126,10 +126,14 @@ VideoWindow::VideoWindow( intf_thread_t *_p_intf, wxWindow *_p_parent ):
wxSize
child_size
=
wxSize
(
0
,
0
);
if
(
!
b_auto_size
)
{
WindowSettings
*
ws
=
p_intf
->
p_sys
->
p_window_settings
;
wxPoint
p
;
bool
b_shown
;
// Maybe this size should be an option
child_size
=
wxSize
(
wxSystemSettings
::
GetMetric
(
wxSYS_SCREEN_X
)
/
2
,
wxSystemSettings
::
GetMetric
(
wxSYS_SCREEN_Y
)
/
2
);
ws
->
GetSettings
(
WindowSettings
::
ID_VIDEO
,
b_shown
,
p
,
child_size
);
SetSize
(
child_size
);
}
...
...
@@ -167,6 +171,15 @@ VideoWindow::~VideoWindow()
p_intf
->
pf_control_window
=
NULL
;
vlc_mutex_unlock
(
&
lock
);
#ifdef WIN32
if
(
!
b_auto_size
)
{
WindowSettings
*
ws
=
p_intf
->
p_sys
->
p_window_settings
;
ws
->
SetSettings
(
WindowSettings
::
ID_VIDEO
,
true
,
GetPosition
(),
GetSize
()
);
}
#endif
vlc_mutex_destroy
(
&
lock
);
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
2c98e728
...
...
@@ -1068,6 +1068,7 @@ public:
ID_MESSAGES
,
ID_FILE_INFO
,
ID_BOOKMARKS
,
ID_VIDEO
,
ID_MAX
,
};
...
...
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