Archived

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

thedo

DirectDraw 7 and C++ Builder 4

Recommended Posts

thedo    124
I am creating a set of components in Builder. 2 Components are TSprite and TScene2D. TScene2D inherits from TWinControl. It uses TWinControl''s HWND (named Handle) to create a DirectDraw Window (in windowed mode). TSprite is a ''friend'' of TScene2D (to get a copy of the LPDIRECTDRAW7). The problem is that the code works some times BUT shen the window is small the BltFast (which is used to blit the sprite) expands the Sprite to be 2-4 times bigger. I wasn''t aware of the BltFast instruction being able to do this (I thought that was the point - Blt was there for scaling and rotating etc) - so any one know why this may be happening? Thankyou in advance Neil

Share this post


Link to post
Share on other sites