Make sure to save/restore the canvas matrix
This commit is contained in:
Родитель
1badcd9f25
Коммит
4f288beb33
|
@ -28,8 +28,11 @@ namespace SkiaSharp.Views.Gtk
|
|||
// get the pixbuf
|
||||
CreateDrawingObjects();
|
||||
|
||||
// start drawing
|
||||
OnPaintSurface(new SKPaintSurfaceEventArgs(surface, imgInfo));
|
||||
// start drawing
|
||||
using (new SKAutoCanvasRestore(surface.Canvas, true))
|
||||
{
|
||||
OnPaintSurface(new SKPaintSurfaceEventArgs(surface, imgInfo));
|
||||
}
|
||||
|
||||
surface.Canvas.Flush();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче