• Advertisement

Archived

This topic is now archived and is closed to further replies.

Blt vs. BltFast

This topic is 5438 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! Because of performance reasons with my old graphicscard I have to use BltFast when flipping the backbuffer to the frontbuffer in windowed mode. But why is the backbuffer smaller when I use BltFast? I don''t strech it with the Blt () funktion! When using BltFast there becomes a black line in the bottom of the window about 20 pixels hight. So it becomes smaller vertical. Anyone knows why? Here is the code: //OK with the Blt-function. g_Display->GetBackBuffer()->Blt(&dest, g_Surface- >GetDDrawSurface(), NULL, DDBLT_WAIT, NULL); //Smaller with BltFast in vertical line?! g_Display->GetBackBuffer()->BltFast(dest.left, dest.top, g_Surface->GetDDrawSurface(), NULL, NULL); Regards, Mattias

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Here are a couple of things to consider:

( 1 ) BltFast DOES NOT support scaling
( 2 ) In windowed mode you MUST account for the size of the frame window, menu, tool bars, etc. You can do this by using AdjustWindowRect. This is important because the client area of your windowed mode app must match your surface size exactly. Otherwise BltFast will not work properly.

Share this post


Link to post
Share on other sites

  • Advertisement