Mercurial > projects > doodle
diff doodle/gtk/cairo_canvas.d @ 100:a274d16ab6ce
struct initialisers
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Mon, 18 Oct 2010 18:10:02 +1030 |
parents | a98116479793 |
children | 345fb56d89fc |
line wrap: on
line diff
--- a/doodle/gtk/cairo_canvas.d Wed Oct 06 13:03:38 2010 +1030 +++ b/doodle/gtk/cairo_canvas.d Mon Oct 18 18:10:02 2010 +1030 @@ -39,8 +39,6 @@ this(in Layer[] layers, IEventHandler eventHandler, IGrid grid, in double pixelsPerMillimetre) { super(3, 3, 0); - _damageScreen = Rectangle.DEFAULT; - _eventHandler = eventHandler; _grid = grid; _pixelsPerMillimetre = pixelsPerMillimetre; @@ -410,7 +408,7 @@ int x, y, w, h; _damageScreen.getQuantised(x, y, w, h); _drawingArea.queueDrawArea(x, cast(int)_screenModel.viewBoundsScreen.h - (y + h), w, h); - _damageScreen = Rectangle.DEFAULT; + _damageScreen = Rectangle(); } }