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
e5489da6
Commit
e5489da6
authored
Dec 04, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash while drawing playlist
+ popup compile fix (bonus !)
parent
8f8be7fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
modules/gui/skins2/controls/ctrl_tree.cpp
modules/gui/skins2/controls/ctrl_tree.cpp
+7
-4
modules/gui/skins2/x11/x11_popup.hpp
modules/gui/skins2/x11/x11_popup.hpp
+1
-0
No files found.
modules/gui/skins2/controls/ctrl_tree.cpp
View file @
e5489da6
...
...
@@ -597,6 +597,7 @@ void CtrlTree::makeImage()
const
GenericBitmap
*
m_pCurBitmap
;
UString
*
pStr
=
(
UString
*
)(
it
->
m_cString
.
get
());
uint32_t
color
=
(
it
->
m_playing
?
m_playColor
:
m_fgColor
);
// Draw the text
if
(
pStr
!=
NULL
)
{
...
...
@@ -613,17 +614,19 @@ void CtrlTree::makeImage()
if
(
m_pCurBitmap
)
{
// Make sure we are centered on the line
int
yPos2
=
yPos
+
(
i_itemHeight
-
m_pCurBitmap
->
getHeight
()
+
1
)
/
2
;
if
(
yPos2
>=
height
)
{
delete
pText
;
break
;
}
m_pImage
->
drawBitmap
(
*
m_pCurBitmap
,
0
,
0
,
bitmapWidth
*
(
depth
-
1
),
yPos2
,
m_pCurBitmap
->
getWidth
(),
__MIN
(
m_pCurBitmap
->
getHeight
(),
height
-
yPos2
),
true
);
}
else
{
/* it would be nice to draw something */
}
yPos
+=
i_itemHeight
-
pText
->
getHeight
();
int
ySrc
=
0
;
if
(
yPos
<
0
)
...
...
modules/gui/skins2/x11/x11_popup.hpp
View file @
e5489da6
...
...
@@ -26,6 +26,7 @@
#include "../src/os_popup.hpp"
class
X11Display
;
/// X11 implementation of OSPopup
class
X11Popup
:
public
OSPopup
...
...
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