[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] blit problem (bug?)



> I have a problem that I do not manage to solve yet after
> many hours of trying and fiddling.
> 
> My screen is a 1024x768 bitmap.
> I created an off-screen buffer of 1024x832 and want to blit a
> part of this buffer into my screen
> BUT
> if i use
>     screen.blit(offscreenbuffer,(0,0)) # it works
> but
>     screen.blit(offscreebuffer,(0,0),(0,64,1024,768))
> 
> Then only the first 704 pixels (in height) are blitted to the
> screen....
> as well,
>     screen.blit(offscreebuffer,(0,0),(0,64,1024,832))
> gives the same result
> 
> It seems pygame clipped the blit to the dest_h-src_y!!!!

try [(0,64),(1024,768)]

-- 
*  tgz@orotech.net  *  http://clickass.org  *  ICQ# 1107012  *  AIM/Yahoo: 
theGREENzebra  *  http://mp3.com/thegreenzebra
-----GEEK CODE 3.12-----
GCM/CS/IT/MU d? s: a22 C++++ UL++++ P+ L+++>$ E---- W++ N+ o K- w---$ O- M 
V-- PS+ PE Y+ PGP- t++(+++) 5- X R tv(+) b+(-) DI+++ D+ G++ e h++ r+(---) y+ 
UF*++

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org