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

Re: [pygame] Another blitting surface to itself crash



I think somebody must have made that change for XP and earlier OS' in pygame.

you should be able to test the alternative (windib) with:
os.environ['SDL_VIDEODRIVER'] ='windib'

On Tue, Aug 5, 2008 at 10:32 AM, David Muffley <sunami.2600@xxxxxxxxx> wrote:
Actually, the SDL_VIDEODRIVER var is set to directx already, with either SDL.dll.  Is that normal?  I didn't change anything by myself prior to this.


On Tue, Aug 5, 2008 at 3: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.
>