mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix performance problem when we change color sliders with mouse movement
This commit is contained in:
parent
64deb6ed87
commit
802b8a0a10
@ -617,11 +617,13 @@ void Widget::setBounds(const Rect& rc)
|
||||
|
||||
void Widget::setBoundsQuietly(const gfx::Rect& rc)
|
||||
{
|
||||
m_bounds = rc;
|
||||
if (m_bounds != rc) {
|
||||
m_bounds = rc;
|
||||
|
||||
// Remove all paint messages for this widget.
|
||||
if (Manager* manager = this->manager())
|
||||
manager->removeMessagesFor(this, kPaintMessage);
|
||||
// Remove all paint messages for this widget.
|
||||
if (Manager* manager = this->manager())
|
||||
manager->removeMessagesFor(this, kPaintMessage);
|
||||
}
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user