aboutsummaryrefslogtreecommitdiff
path: root/src/tool_image.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-17 22:13:51 +0100
committerThomas White <taw@bitwiz.org.uk>2011-10-17 22:13:51 +0100
commita11196f4e47c312ff787d3990e0aa8edefa3e395 (patch)
treeb43a99972750dc62aae39380e3bbdc2e9b856984 /src/tool_image.c
parentc124f153354b6f63aa5f40dbe8e99b6b23cb416b (diff)
New slide redraw logic
This way is much more straightforward, and allows rendering in many different sizes
Diffstat (limited to 'src/tool_image.c')
-rw-r--r--src/tool_image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tool_image.c b/src/tool_image.c
index 09cc641..2baf7c3 100644
--- a/src/tool_image.c
+++ b/src/tool_image.c
@@ -86,6 +86,8 @@ static void update_image(struct image_object *o)
o->scaled_pb = gdk_pixbuf_scale_simple(i->pb, w, h,
GDK_INTERP_BILINEAR);
} /* else the size didn't change */
+
+ redraw_slide(((struct object *)o)->parent);
}
@@ -153,7 +155,6 @@ struct object *add_image_object(struct slide *s, double x, double y,
free(new);
return NULL;
}
- s->object_seq++;
update_image(new);
@@ -228,10 +229,8 @@ static void end_drag(struct toolinfo *tip, struct presentation *p,
o->bb_width = ti->box_width;
o->bb_height = ti->box_height;
update_image((struct image_object *)o);
- o->parent->object_seq++;
ti->drag_reason = IMAGE_DRAG_REASON_NONE;
- redraw_overlay(p);
}