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
afe5f8d6
Commit
afe5f8d6
authored
Jan 25, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: correct forgotten position and set default values
parent
cc371f30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/gui/skins2/src/generic_window.cpp
modules/gui/skins2/src/generic_window.cpp
+6
-4
modules/gui/skins2/src/generic_window.hpp
modules/gui/skins2/src/generic_window.hpp
+2
-1
No files found.
modules/gui/skins2/src/generic_window.cpp
View file @
afe5f8d6
...
...
@@ -170,10 +170,12 @@ void* GenericWindow::getOSHandle() const
void
GenericWindow
::
setParent
(
GenericWindow
*
pParent
,
int
x
,
int
y
,
int
w
,
int
h
)
{
// Update the window size
m_width
=
w
;
m_height
=
h
;
// Update the window size and position
m_left
=
x
;
m_top
=
y
;
m_width
=
(
w
>
0
)
?
w
:
m_width
;
m_height
=
(
h
>
0
)
?
h
:
m_height
;
void
*
handle
=
pParent
?
pParent
->
getOSHandle
()
:
NULL
;
m_pOsWindow
->
reparent
(
handle
,
x
,
y
,
w
,
h
);
m_pOsWindow
->
reparent
(
handle
,
m_left
,
m_top
,
m_width
,
m_height
);
}
modules/gui/skins2/src/generic_window.hpp
View file @
afe5f8d6
...
...
@@ -96,7 +96,8 @@ public:
void
*
getOSHandle
()
const
;
/// reparent
void
setParent
(
GenericWindow
*
pParent
,
int
x
,
int
y
,
int
w
,
int
h
);
void
setParent
(
GenericWindow
*
pParent
,
int
x
=
0
,
int
y
=
0
,
int
w
=
-
1
,
int
h
=
-
1
);
protected:
/// Get the OS window
...
...
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