Dx SDK tutorial help
There is some code in the Stretch.cpp file of the DirectX 7 SDK tutorial, that I dont get. I get everything but this part
//these are of course at the top of the file
RECT destRect;
POINT pt;
//this is in the update frame function
GetClientRect(hWnd, &destRect);
if (destRect.right < 128)
destRect.right = 64;
if (destRect.bottom < 64)
destRect.bottom = 64;
pt.x = pt.y = 0;
ClientToScreen(hWnd, &pt);
OffsetRect(&destRect, pt.x, pt.y);
can someone please explain what this code does?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement