ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #00075
[Branch ~xsplash-team/xsplash/trunk] Rev 61: show last frame in ping-pong mode, fix by Anders Kaseorg
Merge authors:
Anders Kaseorg (anders-kaseorg)
Related merge proposals:
https://code.launchpad.net/~anders-kaseorg/xsplash/last-frame/+merge/11214
proposed by: Anders Kaseorg (anders-kaseorg)
review: Approve - Cody Russell (bratsche)
------------------------------------------------------------
revno: 61 [merge]
committer: Cody Russell <crussell@xxxxxxxxxxxxx>
branch nick: xsplash
timestamp: Fri 2009-09-04 18:43:55 -0500
message:
show last frame in ping-pong mode, fix by Anders Kaseorg
modified:
src/xsplash.c
--
lp:xsplash
https://code.launchpad.net/~xsplash-team/xsplash/trunk
Your team ayatana-commits is subscribed to branch lp:xsplash.
To unsubscribe from this branch go to https://code.launchpad.net/~xsplash-team/xsplash/trunk/+edit-subscription.
=== modified file 'src/xsplash.c'
--- src/xsplash.c 2009-09-02 14:04:26 +0000
+++ src/xsplash.c 2009-09-04 16:28:58 +0000
@@ -547,7 +547,7 @@
server = (XsplashServer *)user_data;
priv = XSPLASH_SERVER_GET_PRIVATE (server);
- frame = MAX (throbber_frames * progress - 1, 0);
+ frame = MIN (throbber_frames * progress, throbber_frames - 1);
height = gdk_pixbuf_get_height (priv->throbber_pixbuf) / throbber_frames;
y_offset = height * (frame);