Jump to content
  • Advertisement


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


direct draw: stretch a portion of a 2nd surface

This topic is 6261 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

Hi all, While blitting from secondary surface to primary, if source and dest rect differ, stretch is performed on the target surface. This works well if I want to copy ALL my secondary to primary. Consider the case where I want to copy only a portion of the secondary surface to the primary. I know which part of the source rect I need to copy but I don''t know which rectangle will be the (stretched) dest one..I mean I cannot identify dest left and top with precision since I don''t know exactly the scaling algo..Any ideas? thanks, bye, adam

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!