Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Craazer

Cant blit out of the surface

This topic is 5940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Now im really confused, i cant blit out of the surface, not even one pixel or the blitting will fail. I wonder whats the problem becose i have done this before and i have set the DDSCAPS_OFFSCREENPLAIN too but no... And becose im doing screen scrolling i have to blit litle bit outside u know, any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Blit doesn''t perform any clipping, if no clipper is attached to the surface. So you could use a clipper, or adjust the source and destination rectangle by hand.

Share this post


Link to post
Share on other sites
You mean, if the rect intersects the edge of the target surface?
Well, you can''t do that. You''ll have to check if you''re out of bounds (simple conditional statements) and only blit inside.
The alternative is a clipper, but I personally can''t recommend that.

- JQ
Full Speed Games. Period.

Share this post


Link to post
Share on other sites

Well its probaly clipper problem.. maybe it isnt intialized properly or shometing. becose last time i used clipper my game crashed so i just leaved out :/

But like u said JonnyQuest u wont recomendet it, becose the speed?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!