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
5988891f
Commit
5988891f
authored
Nov 22, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skins2: Cosmetics.
parent
1f7eddac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
modules/gui/skins2/src/anim_bitmap.cpp
modules/gui/skins2/src/anim_bitmap.cpp
+2
-10
No files found.
modules/gui/skins2/src/anim_bitmap.cpp
View file @
5988891f
...
...
@@ -56,9 +56,7 @@ AnimBitmap::~AnimBitmap()
void
AnimBitmap
::
startAnim
()
{
if
(
m_nbFrames
>
1
&&
m_frameRate
>
0
)
{
m_pTimer
->
start
(
1000
/
m_frameRate
,
false
);
}
}
...
...
@@ -87,14 +85,8 @@ void AnimBitmap::draw( OSGraphics &rImage, int xDest, int yDest )
bool
AnimBitmap
::
hit
(
int
x
,
int
y
)
const
{
int
height
=
m_pImage
->
getHeight
()
/
m_nbFrames
;
if
(
y
>=
0
&&
y
<
height
)
{
return
m_pImage
->
hit
(
x
,
m_curFrame
*
height
+
y
);
}
else
{
return
false
;
}
return
y
>=
0
&&
y
<
height
&&
m_pImage
->
hit
(
x
,
m_curFrame
*
height
+
y
);
}
...
...
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