mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Renamed Context::m_current_sprite to m_currentSprite.
This commit is contained in:
parent
77a54b7d34
commit
5d55358ffb
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
Context::Context()
|
Context::Context()
|
||||||
{
|
{
|
||||||
m_current_sprite = NULL;
|
m_currentSprite = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Context::~Context()
|
Context::~Context()
|
||||||
@ -105,7 +105,7 @@ void Context::remove_sprite(Sprite* sprite)
|
|||||||
on_remove_sprite(sprite);
|
on_remove_sprite(sprite);
|
||||||
|
|
||||||
// the current sprite cannot be the removed sprite anymore
|
// the current sprite cannot be the removed sprite anymore
|
||||||
if (m_current_sprite == sprite)
|
if (m_currentSprite == sprite)
|
||||||
set_current_sprite(NULL);
|
set_current_sprite(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,12 +125,12 @@ void Context::send_sprite_to_top(Sprite* sprite)
|
|||||||
|
|
||||||
Sprite* Context::get_current_sprite() const
|
Sprite* Context::get_current_sprite() const
|
||||||
{
|
{
|
||||||
return m_current_sprite;
|
return m_currentSprite;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Context::set_current_sprite(Sprite* sprite)
|
void Context::set_current_sprite(Sprite* sprite)
|
||||||
{
|
{
|
||||||
m_current_sprite = sprite;
|
m_currentSprite = sprite;
|
||||||
|
|
||||||
on_set_current_sprite(sprite);
|
on_set_current_sprite(sprite);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ class Context
|
|||||||
SpriteList m_sprites;
|
SpriteList m_sprites;
|
||||||
|
|
||||||
// Current selected sprite to operate.
|
// Current selected sprite to operate.
|
||||||
Sprite* m_current_sprite;
|
Sprite* m_currentSprite;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user