"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Tools/Tools/TextTool.cs" between
pinta-1.7.tar.gz and pinta-1.7.1.tar.gz

About: Pinta is a powerful image drawing and editing program (modeled after Paint.NET).

TextTool.cs  (pinta-1.7):TextTool.cs  (pinta-1.7.1)
skipping to change at line 1031 skipping to change at line 1031
// Show selection if on text layer // Show selection if on text layer
if (useTextLayer) { if (useTextLayer) {
// Selected Text // Selected Text
Cairo.Color c = new Cairo.Color (0.7, 0.8 , 0.9, 0.5); Cairo.Color c = new Cairo.Color (0.7, 0.8 , 0.9, 0.5);
foreach (Rectangle rect in CurrentTextLay out.SelectionRectangles) foreach (Rectangle rect in CurrentTextLay out.SelectionRectangles)
g.FillRectangle (rect.ToCairoRect angle (), c); g.FillRectangle (rect.ToCairoRect angle (), c);
} }
if (selection != null) { if (selection != null) {
g.AppendPath (selection.SelectionPath); selection.Clip(g);
g.FillRule = Cairo.FillRule.EvenOdd;
g.Clip ();
} }
g.MoveTo (new Cairo.PointD (CurrentTextEngine.Ori gin.X, CurrentTextEngine.Origin.Y)); g.MoveTo (new Cairo.PointD (CurrentTextEngine.Ori gin.X, CurrentTextEngine.Origin.Y));
g.SetSourceColor (PintaCore.Palette.PrimaryColor) ; g.SetSourceColor (PintaCore.Palette.PrimaryColor) ;
//Fill in background //Fill in background
if (BackgroundFill) { if (BackgroundFill) {
using (var g2 = new Cairo.Context (surf)) { using (var g2 = new Cairo.Context (surf)) {
if (selection != null) {
selection.Clip(g2);
}
g2.FillRectangle(CurrentTextLayou t.GetLayoutBounds().ToCairoRectangle(), PintaCore.Palette.SecondaryColor); g2.FillRectangle(CurrentTextLayou t.GetLayoutBounds().ToCairoRectangle(), PintaCore.Palette.SecondaryColor);
} }
} }
// Draw the text // Draw the text
if (FillText) if (FillText)
Pango.CairoHelper.ShowLayout (g, CurrentT extLayout.Layout); Pango.CairoHelper.ShowLayout (g, CurrentT extLayout.Layout);
if (FillText && StrokeText) { if (FillText && StrokeText) {
g.SetSourceColor (PintaCore.Palette.Secon daryColor); g.SetSourceColor (PintaCore.Palette.Secon daryColor);
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)