pygame.Surface.fill() does not respect surface clipping rect or surface bounds

Issue #101 resolved
qbradq
created an issue

While using Surface.fill() to do a little debugging I started getting corrupted surface data, and eventual program crashes. This turned out to be caused by the fill() call not respecting the clipping rect (or even the dimensions of) the surface.

When writing the test program I found that this only occurs when special flags are specified, however it occurs with ALL special flags, not just one.

Comments (9)

  1. qbradq reporter

    Sorry for the late reply, I apparently do not have email notification set up correctly.

    I have attached a simple test program that illustrates that all .fill calls that specify any special flag do not respect the clipping rect. This is a test app and not a unit test unfortunately. I've never done unit testing, might be a good opportunity to learn :D

    So my guess is this will go back to the SDL upstream.

  2. Log in to comment