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
c18236d0
Commit
c18236d0
authored
Feb 19, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a warning
Add some timing to playlist
parent
56d009ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
include/vlc_messages.h
include/vlc_messages.h
+3
-1
modules/gui/skins2/controls/ctrl_tree.cpp
modules/gui/skins2/controls/ctrl_tree.cpp
+5
-0
modules/gui/skins2/utils/var_tree.cpp
modules/gui/skins2/utils/var_tree.cpp
+4
-4
No files found.
include/vlc_messages.h
View file @
c18236d0
...
...
@@ -262,7 +262,9 @@ enum
STATS_TIMER_PLAYLIST_WALK
,
STATS_TIMER_INTERACTION
,
STATS_TIMER_PREPARSE
STATS_TIMER_PREPARSE
,
STATS_TIMER_SKINS_PLAYTREE_IMAGE
,
};
struct
stats_handler_t
...
...
modules/gui/skins2/controls/ctrl_tree.cpp
View file @
c18236d0
...
...
@@ -646,6 +646,8 @@ void CtrlTree::autoScroll()
void
CtrlTree
::
makeImage
()
{
stats_TimerStart
(
getIntf
(),
"[Skins] Playlist image"
,
STATS_TIMER_SKINS_PLAYTREE_IMAGE
);
if
(
m_pImage
)
{
delete
m_pImage
;
...
...
@@ -655,6 +657,7 @@ void CtrlTree::makeImage()
const
Position
*
pPos
=
getPosition
();
if
(
!
pPos
)
{
stats_TimerStop
(
getIntf
(),
STATS_TIMER_SKINS_PLAYTREE_IMAGE
);
return
;
}
int
width
=
pPos
->
getWidth
();
...
...
@@ -734,6 +737,7 @@ void CtrlTree::makeImage()
GenericBitmap
*
pText
=
m_rFont
.
drawString
(
*
pStr
,
color
,
width
-
bitmapWidth
*
depth
);
if
(
!
pText
)
{
stats_TimerStop
(
getIntf
(),
STATS_TIMER_SKINS_PLAYTREE_IMAGE
);
return
;
}
if
(
it
->
size
()
)
...
...
@@ -774,6 +778,7 @@ void CtrlTree::makeImage()
it
=
m_rTree
.
getNextVisibleItem
(
it
);
}
while
(
it
->
m_deleted
);
}
stats_TimerStop
(
getIntf
(),
STATS_TIMER_SKINS_PLAYTREE_IMAGE
);
}
VarTree
::
Iterator
CtrlTree
::
findItemAtPos
(
int
pos
)
...
...
modules/gui/skins2/utils/var_tree.cpp
View file @
c18236d0
...
...
@@ -28,8 +28,8 @@ const string VarTree::m_type = "tree";
VarTree
::
VarTree
(
intf_thread_t
*
pIntf
)
:
Variable
(
pIntf
),
m_id
(
0
),
m_selected
(
false
),
m_playing
(
false
),
m_expanded
(
false
),
m_deleted
(
false
),
m_readonly
(
false
),
m_pData
(
NULL
),
m_pParent
(
NULL
)
m_expanded
(
false
),
m_deleted
(
false
),
m_pData
(
NULL
),
m_pParent
(
NULL
)
,
m_readonly
(
false
)
{
// Create the position variable
m_cPosition
=
VariablePtr
(
new
VarPercent
(
pIntf
)
);
...
...
@@ -42,8 +42,8 @@ VarTree::VarTree( intf_thread_t *pIntf, VarTree *pParent, int id,
void
*
pData
)
:
Variable
(
pIntf
),
m_id
(
id
),
m_cString
(
rcString
),
m_selected
(
selected
),
m_playing
(
playing
),
m_expanded
(
expanded
),
m_deleted
(
false
),
m_
readonly
(
readonly
),
m_
pData
(
pData
),
m_pParent
(
pParent
)
m_deleted
(
false
),
m_
pData
(
pData
),
m_pParent
(
pParent
),
m_
readonly
(
readonly
)
{
// Create the position variable
m_cPosition
=
VariablePtr
(
new
VarPercent
(
pIntf
)
);
...
...
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