[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Another blitting surface to itself crash



For what it's worth, when I was testing various SDL builds on my machine, the SDL_VIDEODRIVER setting never made any difference at all as to whether the blit-to-self's crashed.


On Tue, Aug 5, 2008 at 12:47 AM, René Dudfield <renesd@xxxxxxxxx> wrote:
hi,

Does it work if you put this at the top of your file?

import os
os.environ['SDL_VIDEODRIVER'] ='directx'


cheers,



On Tue, Aug 5, 2008 at 5:37 PM, David Muffley <sunami.2600@xxxxxxxxx> wrote:
> With the default SDL.dll from 1.8.1 on Windows 2000sp4 with Python 2.5
>
> import pygame
> a = pygame.Surface((10,10))
> a.blit(a, (0, 0))   # CRASHES ##
> a.blit(a, (1, 0))   # CRASHES ##
> a.blit(a, (0, 0), (0,0,9,9))  # CRASHES ##
> a.blit(a, (0, 0), (1,1,9,9))  # SUCCEEDS ##
>
>
> On Mon, Aug 4, 2008 at 10:39 PM, Brian Fisher <brian@xxxxxxxxxxxxxxxxxxx>
> wrote:
>>
>> OK, so basically I've got an SDL I built myself that I'd like other people
>> who are experiencing this problem to try out.
>> SDL is zipped up here:
>> thorbrian.com/SDL_TestBlitToSelf.zip
>
> Using this version on the same machine, all the above self-blits worked.
>