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

DirectDraw

Started by klubbkid Oct 17, 2000 at 3:48 PM 2 replies 300+ views
Original Post
klubbkid
klubbkid
I have a source surface that 11 pixels wide, by 1 pixel high... How can I stretch the blit to be 11 wide by 25 high? Thanks, - Derek http://www.effigyonline.com/
klubbkid
klubbkid
Oh...and I need it to not be blended or anything...just stretched
Buster
Buster
IDirectDrawSurface7::Blt(...)
Tornado
Tornado
Yeah, just use Blt(), like this:

    
LPDIRECTDRAWSURFACE7 surface; // the surface

RECT bltfrom;
bltfrom.top = 0;
bltfrom.bottom = 25;
bltfrom.left = 0;
bltfrom.right = 11;

lpddsback->Blt(NULL,surface,&bltfrom,DDBLT_DONOWAIT,NULL);




- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction

Topic Locked

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

Sign in to reply to this topic.