Re: [Sdl4fp-users] blitting outside screen area
Brought to you by:
trixx
From: Matthias <ma...@gm...> - 2006-04-23 01:14:29
|
Not too easy, because the whole process of sprite management is done by objects. But you helped me alot already. I tried the same thing with another sprite and then the parts blitted outside didn't get cut (don't know why I didn't try before; probably because I didn't know what to expect). So, now I know it should have something to do with my code. If I figured out what exactly is causing this and it might be interesting for you I will post it. If it is caused by something like "oh damn, forgot to NEW the pointer..." I won't post. So thanks alot Elio! Greets, Matthias ----- Original Message ----- From: "Elio Cuevas Gómez" <el...@mi...> To: <sdl...@li...> Sent: Sunday, April 23, 2006 2:09 AM Subject: Re: [Sdl4fp-users] blitting outside screen area Not sure why is this happening... Could you provide us with a code sample? I have never seen this behavior before. El Sáb 22 Abr 2006 10:49, Matthias escribió: > Hi there. > > I have strange behaviour if I blit outside screen area. I used > SDL_SETCLIPRECT to define the clipping area (the error described next > occurs if I don't define clip area, too). The clip area is exactly the > screen area (it returns TRUE). > > I noticed that if I clipped an image outside the area and later try to > blit > it to the visible area the image won't be seen. > > Next I tried to clip an image (200 x 200) at a position (for example x= > 200, y= -100) so it would be partially in visible area and other part > outside screen area. Then, as expected, the partial part inside screen > area > is shown. - But if I try to clip it to another part of the screen, so the > whole image should be seen, only the partial part is seen. > > Most curious thing about this: I blitted the image, after the clipping > half > outside the screen as described before, at position (0,0)... instead of an > [200 x 200]-Image with the first part (200 x 100) cleared I just got the > shown part at (0,0) so it seems as if the image got cut or shrinked by > half. But if I check the value of width and height of image it stayed 200 > x > 200. I am really not sure how to explain this. > > Any hints how to let images be blitable after blitting them to outside > area? What is the reason why it does not work as described? > > Thanks a lot! > > Greets, > Matthias ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ Sdl4fp-users mailing list Sdl...@li... https://lists.sourceforge.net/lists/listinfo/sdl4fp-users |