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
1e26b23a
Commit
1e26b23a
authored
Dec 04, 2005
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/src/generic_layout.cpp: Fixed a resizing bug (the invisible controls
were drawn when resizing the layout)
parent
986744e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
modules/gui/skins2/src/generic_layout.cpp
modules/gui/skins2/src/generic_layout.cpp
+11
-11
No files found.
modules/gui/skins2/src/generic_layout.cpp
View file @
1e26b23a
...
...
@@ -144,11 +144,6 @@ void GenericLayout::onControlUpdate( const CtrlGeneric &rCtrl,
void
GenericLayout
::
resize
(
int
width
,
int
height
)
{
if
(
width
==
m_width
&&
height
==
m_height
)
{
return
;
}
// Check boundaries
if
(
width
<
m_minWidth
)
{
...
...
@@ -167,6 +162,11 @@ void GenericLayout::resize( int width, int height )
height
=
m_maxHeight
;
}
if
(
width
==
m_width
&&
height
==
m_height
)
{
return
;
}
// Update the window size
m_width
=
width
;
m_height
=
height
;
...
...
@@ -183,12 +183,12 @@ void GenericLayout::resize( int width, int height )
list
<
LayeredControl
>::
const_iterator
iter
;
for
(
iter
=
m_controlList
.
begin
();
iter
!=
m_controlList
.
end
();
iter
++
)
{
(
*
iter
).
m_pControl
->
onResize
();
const
Position
*
pPos
=
(
*
iter
).
m_pControl
->
getPosition
();
if
(
pPos
)
iter
->
m_pControl
->
onResize
();
const
Position
*
pPos
=
iter
->
m_pControl
->
getPosition
();
if
(
pPos
&&
iter
->
m_pControl
->
isVisible
()
)
{
(
*
iter
).
m_pControl
->
draw
(
*
m_pImage
,
pPos
->
getLeft
(),
pPos
->
getTop
()
);
iter
->
m_pControl
->
draw
(
*
m_pImage
,
pPos
->
getLeft
(),
pPos
->
getTop
()
);
}
}
...
...
@@ -223,7 +223,7 @@ void GenericLayout::refreshRect( int x, int y, int width, int height )
{
CtrlGeneric
*
pCtrl
=
(
*
iter
).
m_pControl
;
const
Position
*
pPos
=
pCtrl
->
getPosition
();
if
(
p
Ctrl
->
isVisible
()
&&
pPos
)
if
(
p
Pos
&&
pCtrl
->
isVisible
()
)
{
pCtrl
->
draw
(
*
m_pImage
,
pPos
->
getLeft
(),
pPos
->
getTop
()
);
// Remember the video control (we assume there is at most one video
...
...
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