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

Re: [pygame] BUG: blit to self



On Mon, 2005-11-21 at 07:43 +1100, Rene Dudfield wrote:
> The following script, when executed under my Windows XP, crashes. It
> does work under Linux.
> 
>  ----script start----
>  import pygame, sys
> 
>  pygame.init()
>  s = pygame.Surface((640, 480))
>  print "SDL version", pygame.get_sdl_version()
>  print "pygame version", pygame.version.ver
>  print "python version", sys.version
> 
>  print "before blit"
>  s.blit(s, (1, 0), (0, 0, 1, 1))
>  print "after blit"
>  ----script end----

A thought -- could it be an HWSURFACE under Windows and a SWSURFACE
under X? I think I've seen this before. If it's a hardware surface then
I suspect it's more fragile and reliant upon the specifics of the
OS/card/drivers.
-- 
Joe Wreschnig <piman@xxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part