On 6/14/05, Calle Laakkonen <[EMAIL PROTECTED]> wrote:
> >
> > well, I made a few small changes to the code to see what is happening:
> >
> > #if SDL_BYTEORDER == SDL_LIL_ENDIAN
> >     width = tmpbuf[0] | tmpbuf[1] << 8;
> >     height = tmpbuf[2] | tmpbuf[3] << 8;
> > #else
> >     width = tmpbuf[0] | tmpbuf[1] << 8;
> >     height = tmpbuf[2] | tmpbuf[3] << 8;
> > #endif
> >
> >          printf("width = %d (%x), height = %d (%x)\n", width, width,
> > height, height);
> >
> 
> >
> > so the code I changed should be right, and the problem comes from
> > somewhere else, or my fix is incomplete.
> >
> 
> There are more byteswaps in that function as well as the one above. Try
> changing those as well.
> Another user reported that luola crashed during a fade-to-black animation. It
> probably isn't related to this, but I attached the patch that should fix it.
> 

I made it work :)
Ok, the attached pacth should apply on the original source
(luola_1.2.6.dfsg.orig.tar.gz) and is quite unclean as it contains my 
debug printf-s and commented out code relative to endianess.

Christian, I made a change to the debian package - NMU change, as I
was tired of aptitude installing debian's official version of luola
over mine.

Calle, if you need a cleaner patch, please say so. (I basically
removed all the defines that were depending on the endianess and used
the original code in the function lcmap_to_surface_rw.

Apparently the problems where caused in other places than the afore
mentioned function.

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Attachment: luola_1.2.6.dfsg-1.1.diff.gz
Description: GNU Zip compressed data

Reply via email to