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