Skip to content

Commit

Permalink
Updated the samples a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Jan 15, 2017
1 parent bb0dd13 commit aa040d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/SkiaSharpSample.Shared/Samples/SvgSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override void OnDrawSample(SKCanvas canvas, int width, int height)
canvas.Clear(SKColors.White);

float canvasMin = Math.Min(width, height);
float svgMax = Math.Max(svg.Picture.Bounds.Width, svg.Picture.Bounds.Height);
float svgMax = Math.Max(svg.Picture.CullRect.Width, svg.Picture.CullRect.Height);
float scale = canvasMin / svgMax;
var matrix = SKMatrix.MakeScale(scale, scale);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override void OnDrawSample(SKCanvas canvas, int width, int height)
canvas.Clear(SKColors.White);

float canvasMin = Math.Min(width, height);
float svgMax = Math.Max(svg.Picture.Bounds.Width, svg.Picture.Bounds.Height);
float svgMax = Math.Max(svg.Picture.CullRect.Width, svg.Picture.CullRect.Height);
float scale = canvasMin / svgMax;
var matrix = SKMatrix.MakeScale(scale, scale);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public XferModeColorFilterSample()
{
}

public override string Title => "Xfer Mode Color Filter";
public override string Title => "Blend Mode Color Filter";

public override SampleCategories Category => SampleCategories.ColorFilters;

Expand Down
2 changes: 1 addition & 1 deletion samples/SkiaSharpSample.Shared/Samples/XfermodeSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public XfermodeSample()
{
}

public override string Title => "Xfermode";
public override string Title => "Blend Mode";

public override SampleCategories Category => SampleCategories.Shaders;

Expand Down

0 comments on commit aa040d9

Please sign in to comment.