DirectDraw7: Lock Surface never succeeds...
Hi there,
I am currently working on a simple wrapper class for my DirectX related stuff.
I am using DirectDraw7 for the graphics and built a colordepth independent and windowed/fullscreen capable simple engine.
But for now I am really stuck: whenever I try to Lock for instance the backbuffer (to draw some pixels etc) I get a HRESULT of the value 1.
The meaning of 1 is something like "Call successful, but returned FALSE"...
I've done a lot of debugging in windowed mode so far, but have really no idea what might be the reason... all the DX function calls return success.
In fullscreen I build a primary surface and an attached backbuffer.
In windowed mode I build just a primary surface with a clipper (attached to the window, of window's size) and the "backbuffer" as an offscreen surface that can be blitted to the primary surface.
What might be the reason for the Lock being invalid ...
Thanks for any help!
[edited by - perkele on September 10, 2002 7:22:25 AM]
September 10, 2002 01:13 PM
Maybe you should post the code so we can see if you''re doing something wrong?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement