[hatari-devel] video.c happily overwriting Hatari memory and crashing (when user uses border pixel values < 16)

npomarede at corp.free.fr npomarede at corp.free.fr
Fri Mar 19 00:21:40 CET 2010


On Thu, 18 Mar 2010, Eero Tamminen wrote:

> It could handle the case when there are no (left/right) borders.
>
> I reviewed all the code using borders and I think the attached patch should
> fix it.


You're right, I was a bit lazy on these cases as I handled a similar one 
for BORDERMASK_LEFT_OFF_2_STE.

But I had to modify your patch, since it would not increase pVideoRaster 
by 2 or 4*2 bytes and this should be made in all cases, whether we can 
write in left screen border or not, else the display will be buggy.

Nicolas




More information about the hatari-devel mailing list