From e7f783b5e2bed01e633cfffd15f3da3e4d5b874d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 4 Sep 2006 15:46:12 +0000 Subject: Force non-interruptible canvas redraws to ensure accurate display while creating objects (bzr r1679) --- src/star-context.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/star-context.cpp') diff --git a/src/star-context.cpp b/src/star-context.cpp index 74b252860..fc1d71052 100644 --- a/src/star-context.cpp +++ b/src/star-context.cpp @@ -442,6 +442,8 @@ static void sp_star_drag(SPStarContext *sc, NR::Point p, guint state) arg1 = sp_round(arg1, M_PI / snaps); } + sp_canvas_force_full_redraws(desktop->canvas, 1); + sp_star_position_set(star, sc->magnitude, p0, r1, r1 * sc->proportion, arg1, arg1 + M_PI / sides, sc->isflatsided, sc->rounded, sc->randomized); @@ -474,6 +476,8 @@ sp_star_finish (SPStarContext * sc) /* TODO: annotate */ "star-context.cpp:474"); sc->item = NULL; + + sp_canvas_clear_forced_full_redraws(desktop->canvas); } } -- cgit v1.2.3