diff options
author | is <is@pkgsrc.org> | 2003-02-27 21:42:33 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2003-02-27 21:42:33 +0000 |
commit | bd42db723700294e11379c0c0f2d52c8831fb887 (patch) | |
tree | 125fb43239cd5d9101d1b9671732f3a73f704bf9 /www/links/patches | |
parent | 828fd0b167df6baf96b7637e504f29239c155fcb (diff) | |
download | pkgsrc-bd42db723700294e11379c0c0f2d52c8831fb887.tar.gz |
Fix client-side image maps to allow for non-integer coordinates.
By Mikulas Patocka, Twibright Labs.
Diffstat (limited to 'www/links/patches')
-rw-r--r-- | www/links/patches/patch-af | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/links/patches/patch-af b/www/links/patches/patch-af new file mode 100644 index 00000000000..e4e7a019b4d --- /dev/null +++ b/www/links/patches/patch-af @@ -0,0 +1,15 @@ +$NetBSD: patch-af,v 1.1 2003/02/27 21:42:34 is Exp $ + +--- html_gr.c_ Thu Feb 27 18:24:52 2003 ++++ html_gr.c Thu Feb 27 18:24:55 2003 +@@ -532,6 +532,10 @@ + while (*p && (*p < '0' || *p > '9')) p++; + if (!*p) goto noc; + while (*p >= '0' && *p <= '9' && num < 10000000) num = num * 10 + *p - '0', p++; ++ if (*p == '.') { ++ p++; ++ while (*p >= '0' && *p <= '9') p++; ++ } + if (*p == '%' && num < 1000) { + int m = io->xw < io->yw ? io->xw : io->yw; + num = num * m / 100; |