mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
Minor change in ColorSelector to resize the previous rendered canvas
This commit is contained in:
parent
922f99ef87
commit
4b99d3022a
@ -117,8 +117,14 @@ public:
|
|||||||
paint.color(bgColor);
|
paint.color(bgColor);
|
||||||
paint.style(os::Paint::Fill);
|
paint.style(os::Paint::Fill);
|
||||||
m_canvas->drawRect(gfx::Rect(0, 0, w, h), paint);
|
m_canvas->drawRect(gfx::Rect(0, 0, w, h), paint);
|
||||||
if (oldCanvas)
|
if (oldCanvas) {
|
||||||
m_canvas->drawSurface(oldCanvas.get(), 0, 0);
|
m_canvas->drawSurface(
|
||||||
|
oldCanvas.get(),
|
||||||
|
gfx::Rect(0, 0, oldCanvas->width(), oldCanvas->height()),
|
||||||
|
gfx::Rect(0, 0, w, h),
|
||||||
|
os::Sampling(),
|
||||||
|
nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return m_canvas.get();
|
return m_canvas.get();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user