Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b4482700
Commit
b4482700
authored
Apr 06, 2013
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: reuse graphics from generic bitmap cache (animbitmap)
parent
4166f7e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
modules/gui/skins2/src/anim_bitmap.cpp
modules/gui/skins2/src/anim_bitmap.cpp
+5
-11
modules/gui/skins2/src/anim_bitmap.hpp
modules/gui/skins2/src/anim_bitmap.hpp
+1
-1
No files found.
modules/gui/skins2/src/anim_bitmap.cpp
View file @
b4482700
...
...
@@ -29,18 +29,13 @@
AnimBitmap
::
AnimBitmap
(
intf_thread_t
*
pIntf
,
const
GenericBitmap
&
rBitmap
)
:
SkinObject
(
pIntf
),
m_rBitmap
(
rBitmap
),
m_pImage
(
NULL
),
m_curFrame
(
0
),
m_curLoop
(
0
),
m_pTimer
(
NULL
),
m_cmdNextFrame
(
this
)
SkinObject
(
pIntf
),
m_rBitmap
(
rBitmap
),
m_pImage
(
rBitmap
.
getGraphics
()
),
m_nbFrames
(
rBitmap
.
getNbFrames
()
),
m_frameRate
(
rBitmap
.
getFrameRate
()
),
m_nbLoops
(
rBitmap
.
getNbLoops
()
),
m_curFrame
(
0
),
m_curLoop
(
0
),
m_pTimer
(
NULL
),
m_cmdNextFrame
(
this
)
{
// Build the graphics
OSFactory
*
pOsFactory
=
OSFactory
::
instance
(
pIntf
);
m_pImage
=
pOsFactory
->
createOSGraphics
(
rBitmap
.
getWidth
(),
rBitmap
.
getHeight
()
);
m_pImage
->
drawBitmap
(
rBitmap
,
0
,
0
);
m_nbFrames
=
rBitmap
.
getNbFrames
();
m_frameRate
=
rBitmap
.
getFrameRate
();
m_nbLoops
=
rBitmap
.
getNbLoops
();
// Create the timer
m_pTimer
=
pOsFactory
->
createOSTimer
(
m_cmdNextFrame
);
...
...
@@ -49,7 +44,6 @@ AnimBitmap::AnimBitmap( intf_thread_t *pIntf, const GenericBitmap &rBitmap ):
AnimBitmap
::~
AnimBitmap
()
{
delete
m_pImage
;
delete
m_pTimer
;
}
...
...
modules/gui/skins2/src/anim_bitmap.hpp
View file @
b4482700
...
...
@@ -62,7 +62,7 @@ private:
/// Bitmap stored
const
GenericBitmap
&
m_rBitmap
;
/// Graphics to store the bitmap
OSGraphics
*
m_pImage
;
const
OSGraphics
*
const
m_pImage
;
/// Number of frames
int
m_nbFrames
;
/// Frame rate
...
...
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