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
f56161ec
Commit
f56161ec
authored
May 23, 2009
by
Erwan Tulou
Committed by
Jean-Baptiste Kempf
May 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2 : fully support transparency for buttons.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
31526d52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
modules/gui/skins2/src/anim_bitmap.cpp
modules/gui/skins2/src/anim_bitmap.cpp
+9
-3
modules/gui/skins2/src/anim_bitmap.hpp
modules/gui/skins2/src/anim_bitmap.hpp
+2
-0
No files found.
modules/gui/skins2/src/anim_bitmap.cpp
View file @
f56161ec
...
...
@@ -30,7 +30,7 @@
AnimBitmap
::
AnimBitmap
(
intf_thread_t
*
pIntf
,
const
GenericBitmap
&
rBitmap
)
:
SkinObject
(
pIntf
),
m_pImage
(
NULL
),
m_curFrame
(
0
),
m_pTimer
(
NULL
),
m_cmdNextFrame
(
this
)
m_cmdNextFrame
(
this
)
,
m_rBitmap
(
rBitmap
)
{
// Build the graphics
OSFactory
*
pOsFactory
=
OSFactory
::
instance
(
pIntf
);
...
...
@@ -73,8 +73,14 @@ void AnimBitmap::draw( OSGraphics &rImage, int xDest, int yDest )
// Draw the current frame
int
height
=
m_pImage
->
getHeight
()
/
m_nbFrames
;
int
ySrc
=
height
*
m_curFrame
;
rImage
.
drawGraphics
(
*
m_pImage
,
0
,
ySrc
,
xDest
,
yDest
,
m_pImage
->
getWidth
(),
height
);
// The old way .... transparency was not taken care of
// rImage.drawGraphics( *m_pImage, 0, ySrc, xDest, yDest,
// m_pImage->getWidth(), height );
// A new way .... needs to be tested thoroughly
rImage
.
drawBitmap
(
m_rBitmap
,
0
,
ySrc
,
xDest
,
yDest
,
m_pImage
->
getWidth
(),
height
,
true
);
}
...
...
modules/gui/skins2/src/anim_bitmap.hpp
View file @
f56161ec
...
...
@@ -59,6 +59,8 @@ class AnimBitmap: public SkinObject, public Box,
virtual
int
getHeight
()
const
;
private:
/// Bitmap stored
const
GenericBitmap
&
m_rBitmap
;
/// Graphics to store the bitmap
OSGraphics
*
m_pImage
;
/// Number of frames
...
...
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