Advertisement

DirectDraw7: Lock Surface never succeeds...

Started by September 10, 2002 06:21 AM
2 comments, last by perkele 22 years ago
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]
Maybe you should post the code so we can see if you''re doing something wrong?
Advertisement
And I forgot... maybe try ths in the DirectX forum?
quote: Original post by Anonymous Poster
And I forgot... maybe try ths in the DirectX forum?


Okeydoke. I''ll close this thread and try it in the DirectX forum.

This topic is closed to new replies.

Advertisement