mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 00:07:39 +02:00
🐛 Fix frame clipping
This commit is contained in:
parent
a44c70ef69
commit
51bb6583d2
4 changed files with 157 additions and 52 deletions
|
@ -307,8 +307,14 @@ impl Surfaces {
|
|||
self.tiles.remove(tile)
|
||||
}
|
||||
|
||||
pub fn draw_cached_tile_surface(&mut self, tile: Tile, rect: skia::Rect) {
|
||||
pub fn draw_cached_tile_surface(&mut self, tile: Tile, rect: skia::Rect, color: skia::Color) {
|
||||
let image = self.tiles.get(tile).unwrap();
|
||||
|
||||
let mut paint = skia::Paint::default();
|
||||
paint.set_color(color);
|
||||
|
||||
self.target.canvas().draw_rect(rect, &paint);
|
||||
|
||||
self.target
|
||||
.canvas()
|
||||
.draw_image_rect(&image, None, rect, &skia::Paint::default());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue