Advertisement

Clipping in secondary surface?

Started by July 27, 2000 02:52 PM
0 comments, last by DefaultUser 24 years, 4 months ago
Can you clip in secondary_surface and then flip it to the primary_surface? Everytime I put a clipper on the secondary_surface all I could see is black screen, except for the text that uses GDI. But when I put the clipper on the primary_surface bitmaps will show but without clipping. BTW my application display attributes has a 800x600 res. with 32bpp . Example: secondary_surface->BltFast(x,y,offscreen_one,DDBLTFAST_WAIT); secondary_surface->BltFast(x,y,offscreen_two,DDBLTFAST_WAIT); primary_surface->Flip(secondary_surface,NULL); And i don''t understand this from Andre Lamothe''s book: region_data->rdh.rcBound.left = 64000; region_data->rdh.rcBound.top = 64000; region_data->rdh.rcBound.right = -64000; region_data->rdh.rcBound.bottom = -64000; ...why 64000?
Forget about that buggy code, let's start all-over - from scratch. Let's go!
You can''t use BltFast when a clipper is attached to a surface.
At least, that''s what it says in the DirectX7 docuementation.

And I have experienced this behavior as well.

The good news is is that BltFast is supposed to only be faster if you cannot do hardware assisted blitting in a call to Blt.

This topic is closed to new replies.

Advertisement