[Pkg-wmaker-commits] [wmbubble] 186/207: Account for delay_time when calculating duck blink interval.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 70f46624b01523c614037bb9d5e25f0a69296209
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Mon Dec 1 18:03:48 2014 -0600

    Account for delay_time when calculating duck blink interval.
---
 bubblemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 8e3ad78..f9965a6 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -439,7 +439,7 @@ int main(int argc, char **argv) {
 					snprintf(execute, 250, "%s &",
 					         argv[event.xbutton.button - 1]);
 					if (system(execute) == -1)
-						duck_blink += 60;
+						duck_blink += 6 * (150000 / delay_time);
 				}
 				break;
 			case EnterNotify:
@@ -1347,7 +1347,7 @@ void draw_duck(int x, int y, int frame_no, int flipx, int flipy) {
 	if (x < 0)
 		duck_left = -(x);
 	if (duck_blink > 0) {
-		if (duck_blink % 10 == 0)
+		if (duck_blink % (150000 / delay_time) == 0)
 			duck_colors[1] = 0xFFFFFF - duck_colors[1];
 		duck_blink--;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list