mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-03 23:41:56 +00:00
Fix const-correctness for ColorPicker::pickColor() member function
This commit is contained in:
parent
e671508d85
commit
0d7f4498b9
@ -34,7 +34,7 @@ ColorPicker::ColorPicker()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorPicker::pickColor(DocumentLocation& location, int x, int y, Mode mode)
|
void ColorPicker::pickColor(const DocumentLocation& location, int x, int y, Mode mode)
|
||||||
{
|
{
|
||||||
m_alpha = 255;
|
m_alpha = 255;
|
||||||
m_color = app::Color::fromMask();
|
m_color = app::Color::fromMask();
|
||||||
|
@ -30,7 +30,7 @@ namespace app {
|
|||||||
|
|
||||||
ColorPicker();
|
ColorPicker();
|
||||||
|
|
||||||
void pickColor(DocumentLocation& location, int x, int y, Mode mode);
|
void pickColor(const DocumentLocation& location, int x, int y, Mode mode);
|
||||||
|
|
||||||
app::Color color() const { return m_color; }
|
app::Color color() const { return m_color; }
|
||||||
int alpha() const { return m_alpha; }
|
int alpha() const { return m_alpha; }
|
||||||
|
Loading…
Reference in New Issue
Block a user