diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-10-11 23:38:05 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-10-11 23:38:05 +0200 |
commit | 80224ffa532362f66e905ecf3b599fff17bb2e39 (patch) | |
tree | e9c531273e5be7c1739b696018f3d56832fbd0cf /src/slide_render.c | |
parent | 920a213f5453ef9b904d8b90be37ec678b5c7055 (diff) |
Design for general drag logic
Diffstat (limited to 'src/slide_render.c')
-rw-r--r-- | src/slide_render.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slide_render.c b/src/slide_render.c index 3c05f70..e68499a 100644 --- a/src/slide_render.c +++ b/src/slide_render.c @@ -82,9 +82,20 @@ void check_redraw_slide(struct slide *s) void draw_editing_box(cairo_t *cr, double xmin, double ymin, double width, double height) { + const double dash[] = {2.0, 2.0}; + cairo_new_path(cr); cairo_rectangle(cr, xmin-5.0, ymin-5.0, width+10.0, height+10.0); cairo_set_source_rgb(cr, 0.0, 0.69, 1.0); cairo_set_line_width(cr, 0.5); cairo_stroke(cr); + + cairo_new_path(cr); + cairo_rectangle(cr, xmin, ymin, width, height); + cairo_set_dash(cr, dash, 2, 0.0); + cairo_set_source_rgb(cr, 0.0, 0.0, 0.0); + cairo_set_line_width(cr, 0.1); + cairo_stroke(cr); + + cairo_set_dash(cr, NULL, 0, 0.0); } |