From 60345e6b99a9794d2d4d553daf03447e657e7bae Mon Sep 17 00:00:00 2001 From: g Date: Tue, 2 Sep 2003 00:35:25 +0000 Subject: [PATCH] Faster rotating target. git-svn-id: file:///srv/svn/gliv/trunk@74 dbf4865f-1ec6-0310-8412-f61adeb1ccb1 committer: g --- src/zoom_frame.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zoom_frame.c b/src/zoom_frame.c index e8866e5..0e220c0 100644 --- a/src/zoom_frame.c +++ b/src/zoom_frame.c @@ -55,8 +55,8 @@ static void draw_zoom_box(GdkDrawable * d, GdkGC * gc, /* If we are clearing, we must reuse the same parameters. */ if (clear == FALSE) { - target++; - if (target == 90) + target += 320; + if (target == 180 * 64) target = 0; } @@ -68,12 +68,12 @@ static void draw_zoom_box(GdkDrawable * d, GdkGC * gc, gdk_draw_arc(d, gc, FALSE, x_middle - TARGET_SIZE, y_middle - TARGET_SIZE, - TARGET_SIZE * 2, TARGET_SIZE * 2, target * 128, 90 * 64); + TARGET_SIZE * 2, TARGET_SIZE * 2, target, 90 * 64); gdk_draw_arc(d, gc, FALSE, x_middle - TARGET_SIZE, y_middle - TARGET_SIZE, TARGET_SIZE * 2, TARGET_SIZE * 2, - (target + 90) * 128, 90 * 64); + target + 180 * 64, 90 * 64); } } -- 2.11.4.GIT