Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/470dce645bc9cfca1d438f62a8ffe7a6db80a278
...commit
http://git.netsurf-browser.org/netsurf.git/commit/470dce645bc9cfca1d438f62a8ffe7a6db80a278
...tree
http://git.netsurf-browser.org/netsurf.git/tree/470dce645bc9cfca1d438f62a8ffe7a6db80a278
The branch, master has been updated
via 470dce645bc9cfca1d438f62a8ffe7a6db80a278 (commit)
from 89baae16b47fad0dcb50402e9a2ba887b05242c0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=470dce645bc9cfca1d438f62a8ffe7a6db80a278
commit 470dce645bc9cfca1d438f62a8ffe7a6db80a278
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>
Avoid potential division by zero
diff --git a/frontends/amiga/theme.c b/frontends/amiga/theme.c
index 5e4be07..63982c8 100644
--- a/frontends/amiga/theme.c
+++ b/frontends/amiga/theme.c
@@ -54,7 +54,8 @@
static struct BitMap *throbber = NULL;
static struct bitmap *throbber_nsbm = NULL;
-static int throbber_frames, throbber_update_interval;
+static int throbber_frames = 1;
+static int throbber_update_interval;
static Object *mouseptrobj[AMI_LASTPOINTER+1];
static struct BitMap *mouseptrbm[AMI_LASTPOINTER+1];
@@ -176,6 +177,7 @@ void ami_theme_throbber_setup(void)
ami_get_theme_filename(throbberfile,"theme_throbber",false);
throbber_frames=atoi(messages_get("theme_throbber_frames"));
+ if(throbber_frames == 0) throbber_frames = 1;
throbber_update_interval = atoi(messages_get("theme_throbber_delay"));
if(throbber_update_interval == 0) throbber_update_interval = 250;
-----------------------------------------------------------------------
Summary of changes:
frontends/amiga/theme.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/frontends/amiga/theme.c b/frontends/amiga/theme.c
index 5e4be07..63982c8 100644
--- a/frontends/amiga/theme.c
+++ b/frontends/amiga/theme.c
@@ -54,7 +54,8 @@
static struct BitMap *throbber = NULL;
static struct bitmap *throbber_nsbm = NULL;
-static int throbber_frames, throbber_update_interval;
+static int throbber_frames = 1;
+static int throbber_update_interval;
static Object *mouseptrobj[AMI_LASTPOINTER+1];
static struct BitMap *mouseptrbm[AMI_LASTPOINTER+1];
@@ -176,6 +177,7 @@ void ami_theme_throbber_setup(void)
ami_get_theme_filename(throbberfile,"theme_throbber",false);
throbber_frames=atoi(messages_get("theme_throbber_frames"));
+ if(throbber_frames == 0) throbber_frames = 1;
throbber_update_interval = atoi(messages_get("theme_throbber_delay"));
if(throbber_update_interval == 0) throbber_update_interval = 250;
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org