LivePreviewManager.cs (pinta-1.7) | : | LivePreviewManager.cs (pinta-1.7.1) | ||
---|---|---|---|---|
skipping to change at line 89 | skipping to change at line 89 | |||
// Listen for changes to effectConfiguration object, and restart render if needed. | // Listen for changes to effectConfiguration object, and restart render if needed. | |||
live_preview_enabled = true; | live_preview_enabled = true; | |||
apply_live_preview_flag = false; | apply_live_preview_flag = false; | |||
cancel_live_preview_flag = false; | cancel_live_preview_flag = false; | |||
layer = PintaCore.Layers.CurrentLayer; | layer = PintaCore.Layers.CurrentLayer; | |||
this.effect = effect; | this.effect = effect; | |||
//TODO Use the current tool layer instead. | //TODO Use the current tool layer instead. | |||
live_preview_surface = new Cairo.ImageSurface (Cairo.Form at.Argb32, | live_preview_surface = CairoExtensions.CreateImageSurface (Cairo.Format.Argb32, | |||
PintaCore.Workspace.ImageSize.Width, | PintaCore.Workspace.ImageSize.Width, | |||
PintaCore.Workspace.ImageSize.Height); | PintaCore.Workspace.ImageSize.Height); | |||
// Handle selection path. | // Handle selection path. | |||
PintaCore.Tools.Commit (); | PintaCore.Tools.Commit (); | |||
var selection = PintaCore.Workspace.ActiveDocument.Select ion; | var selection = PintaCore.Workspace.ActiveDocument.Select ion; | |||
selection_path = (selection.Visible) ? selection.Selectio nPath : null; | selection_path = (selection.Visible) ? selection.Selectio nPath : null; | |||
render_bounds = (selection_path != null) ? selection_path .GetBounds () : live_preview_surface.GetBounds (); | render_bounds = (selection_path != null) ? selection_path .GetBounds () : live_preview_surface.GetBounds (); | |||
render_bounds = PintaCore.Workspace.ClampToImageSize (ren der_bounds); | render_bounds = PintaCore.Workspace.ClampToImageSize (ren der_bounds); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |