Why isn't this working? It seems like a perfectly ordinary shape... <html> <body> <img src="doesnt_matter.gif" width="250" height="700" usemap="#themap"> <map name="themap"> <area shape="poly" coords="1,250, 245,270, 223,513" href="http://www.dillo.org"> </map> </body> </html> Dillo doesn't realize it when the cursor is inside the left part of the polygon. I was hoping that this vector product stuff was Johannes code, but I see it goes back to the initial revision of the dw2 tree, so who knows where Sebastian might have gotten the algorithm from...
On Fri, Oct 15, 2010 at 05:23:13PM +0000, corvid wrote:
Why isn't this working? It seems like a perfectly ordinary shape...
<html> <body> <img src="doesnt_matter.gif" width="250" height="700" usemap="#themap"> <map name="themap"> <area shape="poly" coords="1,250, 245,270, 223,513" href="http://www.dillo.org"> </map> </body> </html>
Dillo doesn't realize it when the cursor is inside the left part of the polygon. I was hoping that this vector product stuff was Johannes code, but I see it goes back to the initial revision of the dw2 tree, so who knows where Sebastian might have gotten the algorithm from...
That code is pretty cool - I would be proud of it if had written it ;-) The issue was just a that a product could overflow a 32bit integer. I have commited a fix - please test. Cheers, Johannes PS: To me it seems that the explicit closing of polygon paths in html.cc:2348 is unnecessary and complicating things. Can we remove it?
participants (2)
-
corvid@lavabit.com
-
Johannes.Hofmann@gmx.de