Skip to main content
GameDev.net gamedev.net
🔒 Locked

Stretch Blitting

Started by kentcb Feb 4, 2005 at 7:39 AM 1 replies 1.3k views
Original Post
kentcb
kentcb
Hello, If I wanted to blit a black area on the screen, is it appropriate to stretch blit a single black pixel over the area? This is the approach I took recently in my game and it works fine. However, I noticed stretch blitting seems to run really slow on my old PI 200MHz machine. Without any stretch blitting I was getting 60FPS. With it, it would drop as low as 4FPS. Thanks, Kent
turnpast
turnpast
Why not just clear the area you want to the color you want?
kentcb
kentcb
Ta Dave. I wasn't sure *how* to do a clear / fill. I just found the DDBLT_COLORFILL flag for Blt() which should do what I want.

Thanks,
Kent

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.