mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Merge branch 'main' into beta
This commit is contained in:
commit
693a2c85ff
@ -757,7 +757,12 @@ os::SurfaceRef SkinTheme::sliceSheet(os::SurfaceRef sur, const gfx::Rect& bounds
|
||||
os::SurfaceLock lockSrc(m_sheet.get());
|
||||
os::SurfaceLock lockDst(sur.get());
|
||||
m_sheet->blitTo(sur.get(), bounds.x, bounds.y, 0, 0, bounds.w, bounds.h);
|
||||
sur->setImmutable();
|
||||
|
||||
// The new surface is immutable because we're going to re-use the
|
||||
// surface if we reload the theme.
|
||||
//
|
||||
// TODO Add sub-surfaces (SkBitmap::extractSubset())
|
||||
//sur->setImmutable();
|
||||
}
|
||||
else {
|
||||
ASSERT(!sur);
|
||||
|
Loading…
Reference in New Issue
Block a user