Follow-up Comment #13, bug #17573 (project wesnoth):

This version of the patch has been moved to sdl_utils.  It is only compiled
in with gcc, and it should only operate when the library versions of glibc and
SDL lib indicate there might be a bug with SDL.  

One potential problem.  I looked through the assembler for memcpy and it is
processor specific and uses heuristic numbers to determine when to specific
processor specific block copying methods, hence the bug does/doesn't replicate
depending on the size and exact offset of the allocated memory.  I allocated
the test memory with a 1 byte offset and test it x=3 times before deciding
that the bug doesn't occur.  The most times I saw on my machine the bug not
occur was 4 times, but making the number of tests larger will make the first x
screen scrolls glitchy.

One addition to make it affect fewer systems would be to not compile it in
when the compile time libraries indicate no problem will happen.

(file #12653)
    _______________________________________________________

Additional Item Attachment:

File name: SDL_BlitSurfacePatch.5.patch   Size:9 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17573>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to