   DirectDraw bitmapness!
  Well, I''ve got the bitmap loader and everything, loads the bitmap, and then when I use direct x to copy it to the primary surface its all messed up looking and blinking a lot. Hurts your eyes! Anyone know whats wrong?thanks!   DarkNebula 
  Yup, it''s broke. ;  Are you double buffering? ;  No I only have one buffer.   DarkNebula ;  Could it be my bitmap loader?   DarkNebula ;  So no one has any idea what so ever?   DarkNebula ;  You have your answer, you aren''t double buffering.  If you want flicker free animation, you need to double buffer. ;  It's not that it's flickering, the bitmap looks all messed up when it's on the screen. Everything on the screen looks nothing like the bitmap I wanted to put there :/ DarkNebula   [edited by - DarkNebula on July 31, 2003 12:32:57 PM];  Well, if you''re copying the bitmap to the primary surface every iteration, you really should double buffer it, otherwise you will get flickering.Also, two things to note, are you loading the bitmap correctly?  IIRC, bitmaps are saved upside down, so you have to load them backwards, I guess you could say.If you''re loading it correctly, make sure you''re using the horizontal pitch (ddsd.lPitch) to calculate the position on the surface.  Unless you have the bitmap on a offscreen surface and you''re blitting it...  *shrug*  Then, I''m not sure. ;  Im bliting it from an offscreen surface. I blt the offscreen to the backbuffer and then flip it to the primary.DarkNebula   [edited by - DarkNebula on July 31, 2003 12:41:47 PM]