[SDL] Bug in blitting?

Kanzelsberger Pavel pavel.kanzelsberger at umb.sk
Thu Feb 13 22:35:01 PST 2003


Hi,

I'm really sorry, I've found it's my fault. Some other code was
rewriting my surface handle in memory :(

Thanks, Pavel Kanzelsberger


-----Original Message-----
From: Sam Lantinga [mailto:slouken at devolution.com] 
Sent: Wednesday, February 12, 2003 5:23 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Bug in blitting?


> Hi all,

> I'm having trouble using SDL_BlitSurface...

> Let's explain:

> I have primary surface, for example 800x600x16 bit opened using 
> SDL_SetVideoMode(), and then another surface for example 
> 200x200x16bit. I will my second surface with data for example but when

> I blit it to coords 100,100 into primary surface it appears at coords 
> 0,0 ... I have correctly set srcrect and dstrect and this happens with

> both SW_SURFACE and with HW_SURFACE...

> What's wrong? I hope I can blit from different sized surfaces...

It would help if you showed us your code.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list