Skip to main content
gamedev.net
🔒 Locked

Blitting Probem

Started by 1kevgriff 0 replies 350+ views
Original Post
1kevgriff
1kevgriff
First off, here is the code:
  
        background = DDLoadBitmap(lpdd4, CHAMBER);
	buttonback = DDLoadBitmap(lpdd4, B_INTROA);
	
	RECT rect;
	RECT rect2;
	
	SetRect(▭, 0, 0, 800, 600);
	SetRect(&rect2, 0, 0, 160, 80);
	
	lpddsback->BltFast(0,0, background, ▭, DDBLTFAST_WAIT);
	lpddsback->BltFast(100, 100, buttonback, &rect2, DDBLTFAST_SRCCOLORKEY | DDBLTFAST_WAIT);
	lpddsprimary->Flip(NULL, DDFLIP_WAIT);
  
CHAMBER and B_INTROA are defines to bitmaps. They load correctly, at least background does. I blit them to the backbuffer, and I flip. However, buttonback does show up anywhere on the screen? Am I just doing it wrong? Thanks

Topic Locked

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

Sign in to reply to this topic.