diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-19 17:47:59 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-19 17:47:59 +0000 |
commit | 4f2167fb83218d57a11668c6de8b7ec3e0424d81 (patch) | |
tree | bdc1faad2811ea00e766f3d53b33aefed03e3f93 /map.c | |
parent | rc: image_map_list (diff) | |
download | w3m-4f2167fb83218d57a11668c6de8b7ec3e0424d81.tar.gz w3m-4f2167fb83218d57a11668c6de8b7ec3e0424d81.zip |
fix indent
Diffstat (limited to '')
-rw-r--r-- | map.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: map.c,v 1.14 2002/11/19 17:40:34 ukai Exp $ */ +/* $Id: map.c,v 1.15 2002/11/19 17:48:00 ukai Exp $ */ /* * client-side image maps */ @@ -105,23 +105,23 @@ searchMapArea(Buffer *buf, MapList *ml, Anchor *a_img) if (!(ml && ml->area && ml->area->nitem)) return -1; - if (! getMapXY(buf, a_img, &px, &py)) + if (!getMapXY(buf, a_img, &px, &py)) return -1; - n = - ml->area->nitem; + n = -ml->area->nitem; for (i = 0, al = ml->area->first; al != NULL; i++, al = al->next) { a = (MapArea *) al->ptr; if (!a) continue; if (n < 0 && inMapArea(a, px, py)) { if (a->shape == SHAPE_DEFAULT) { - if (n == - ml->area->nitem) + if (n == -ml->area->nitem) n = -i; } else n = i; } } - if (n == - ml->area->nitem) + if (n == -ml->area->nitem) return nearestMapArea(ml, px, py); else if (n < 0) return -n; @@ -200,7 +200,7 @@ retrieveCurrentMap(Buffer *buf) return NULL; fi = (FormItemList *)a->url; if (fi->parent->method == FORM_METHOD_INTERNAL && - !Strcmp_charp(fi->parent->action, "map")) + !Strcmp_charp(fi->parent->action, "map")) return a; return NULL; } |