CellRendererSurface.cs (pinta-1.7) | : | CellRendererSurface.cs (pinta-1.7.1) | ||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
public class CellRendererSurface : CellRenderer | public class CellRendererSurface : CellRenderer | |||
{ | { | |||
private ImageSurface surface; | private ImageSurface surface; | |||
private Surface transparent; | private Surface transparent; | |||
public CellRendererSurface (int width, int height) | public CellRendererSurface (int width, int height) | |||
{ | { | |||
// TODO: Respect cell padding (Xpad and Ypad). | // TODO: Respect cell padding (Xpad and Ypad). | |||
SetFixedSize (width, height); | SetFixedSize (width, height); | |||
transparent = new Cairo.ImageSurface (Cairo.Format.ARGB32 , width, height); | transparent = CairoExtensions.CreateImageSurface (Cairo.F ormat.ARGB32, width, height); | |||
Cairo.Color gray = new Cairo.Color (.75, .75, .75); | Cairo.Color gray = new Cairo.Color (.75, .75, .75); | |||
// Create checkerboard background | // Create checkerboard background | |||
int grid_width = 4; | int grid_width = 4; | |||
using (Cairo.Context g = new Cairo.Context (transparent)) { | using (Cairo.Context g = new Cairo.Context (transparent)) { | |||
g.SetSourceColor (new Cairo.Color (1, 1, 1)); | g.SetSourceColor (new Cairo.Color (1, 1, 1)); | |||
g.Paint (); | g.Paint (); | |||
for (int y = 0; y < height; y += grid_width) | for (int y = 0; y < height; y += grid_width) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |