mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Fix redrawing PaletteView when dragging colors (fix #1616)
Regression introduced in 86c8bc57a5c5e2093194abf10ad6331de50cfd33
This commit is contained in:
parent
338ed9dd49
commit
27f0182bdb
@ -415,10 +415,11 @@ bool PaletteView::onProcessMessage(Message* msg)
|
|||||||
if (hit != m_hot) {
|
if (hit != m_hot) {
|
||||||
// Redraw only when we put the mouse in other part of the
|
// Redraw only when we put the mouse in other part of the
|
||||||
// widget (e.g. if we move from color to color, we don't want
|
// widget (e.g. if we move from color to color, we don't want
|
||||||
// to redraw the whole widget).
|
// to redraw the whole widget if we're on WAITING state).
|
||||||
if (hit.part != m_hot.part)
|
if ((m_state == State::WAITING && hit.part != m_hot.part) ||
|
||||||
|
(m_state != State::WAITING && hit != m_hot)) {
|
||||||
invalidate();
|
invalidate();
|
||||||
|
}
|
||||||
m_hot = hit;
|
m_hot = hit;
|
||||||
}
|
}
|
||||||
setCursor();
|
setCursor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user