[arachne] Re: skewed BMPs.....

Arachne at FreeLists---The Arachne Fan Club!

I forgot to add, the variable which seems to cause the 'wavy'
vertical lines when the image is at the left margin is pic_x,
which equals then 1 (while it should be 0). Similarly, pic_y
is 1 instead of 0, and the top line of the image disappears.

(The placement of image can be precisely controlled with the
following HTML code:

<html><head><title>Test BMP</title></head>
<body marginwidth=0 marginheight=0><img src="test.bmp"></body></html>

instead of 0 you can put any positive number.)

The source of invalid pic_x and pic_y values seems to be in
HTMLDRAW.C. I think that instead of

     if(image->pic_x<screen_x+1)
      image->pic_x=screen_x+1;
     if(image->pic_y<screen_y+1)
      image->pic_y=screen_y+1;

there should be

     if(image->pic_x<screen_x)
      image->pic_x=screen_x;
     if(image->pic_y<screen_y)
      image->pic_y=screen_y;

At least this cures the problem. But maybe there is a good reason
for adding 1, and this fix breaks something else?

Michal


Arachne at FreeLists
-- Arachne, The Web Browser/Suite for DOS and Linux --

Other related posts: