private void dibujar_grilla(DrawingArea area, Cairo.Context cr)
{
for (int x = 0; x < Constantes.nro_casillas; x++)
{
int x0 = Logica.grilla.get_casillero(x, 0).inicioX;
cr.Save();
cr.LineWidth = 0.5;
cr.SetSourceRGBA(0, 0, 0, 0.5);
cr.MoveTo(x0, 0);
cr.LineTo(x0, Constantes.limites.Height);
cr.Stroke();
cr.Restore();
}
for (int y = 0; y < Constantes.nro_casillas; y++)
{
int y0 = Logica.grilla.get_casillero(0, y).inicioY;
cr.Save();
cr.LineWidth = 0.5;
cr.SetSourceRGBA(0, 0, 0, 0.5);
cr.MoveTo(0, y0);
cr.LineTo(Constantes.limites.Width, y0);
cr.Stroke();
cr.Restore();
}
}