Problem(s) with Squeak3.2gamma-4743

Lex Spoon lex at cc.gatech.edu
Wed Mar 6 21:09:55 UTC 2002


> FWIW, I've had the same problem in the early days of the Windows VM. The
> place to look at is in ioShowDisplay where it should check that the
> affected region is within the display bounds, e.g., the following fixed
> the problem for me:
> 
>   /* Careful here: 
>      After resizing the main window the affected area can
>      be larger than the area covered by the display bits ... */
>   if (affectedR > width) affectedR= width;
>   if (affectedB > height) affectedB= height;
>   /* ... and don't forget left and top - else reverse_image_* will crash
> */
>   if (affectedL > width) affectedL= width;
>   if (affectedT > height) affectedT= height;
> 

Great, I've stuck that in the SourceForge code.  Such an error would be
consistent with the bug report, though I can't easily test it myself.

Incidentally, shouldn't the maximums be width-1 and height-1 ?  The code
appears to count from 0 here.


-Lex



More information about the Squeak-dev mailing list