mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 16:20:50 +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.style(os::Paint::Fill);
|
||||
m_canvas->drawRect(gfx::Rect(0, 0, w, h), paint);
|
||||
if (oldCanvas)
|
||||
m_canvas->drawSurface(oldCanvas.get(), 0, 0);
|
||||
if (oldCanvas) {
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user