Is it possible to query a secondary surface in Direct Draw for it's width and height?
Is it possible to query a secondary surface in Direct Draw for it's width and height?
IDirectDrawSurface7::GetSurfaceDesc( LPDDSURFACEDESC2 lpDDSurfaceDesc );
That function should do it for you. Remember to set the size member of the struct before calling the function.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
ok thanks!