Supernat03
Programmer
Hi,
I'm new to Directdraw and am using Borland C++ Builder. I am designing a component to drop on a form that will allow use of Direct Draw 9.0.
So far, I am able to create the DirectDraw object, set the display mode, create the primary surface, apply a palette to it, then draw to it. Not a problem. The problem is that when I run a loop to draw continuously to the display, Windows keeps cutting in and trying to update the desktop, taskmenu, etc. They flash in and out in the background.
I am using DDSCL_FULLSCREEN and DDSCL_EXCLUSIVE in my Set Cooperative level. I would expect windows to turn over full control, but it does not. Could this be that my window class is not being initialized properly because I'm not initializing it in WIN32 format and am expecting Borland to?
Thanks in advance,
Chris
I'm new to Directdraw and am using Borland C++ Builder. I am designing a component to drop on a form that will allow use of Direct Draw 9.0.
So far, I am able to create the DirectDraw object, set the display mode, create the primary surface, apply a palette to it, then draw to it. Not a problem. The problem is that when I run a loop to draw continuously to the display, Windows keeps cutting in and trying to update the desktop, taskmenu, etc. They flash in and out in the background.
I am using DDSCL_FULLSCREEN and DDSCL_EXCLUSIVE in my Set Cooperative level. I would expect windows to turn over full control, but it does not. Could this be that my window class is not being initialized properly because I'm not initializing it in WIN32 format and am expecting Borland to?
Thanks in advance,
Chris