   DirectDraw surface
  Excusive me guys but can u answer me this:i''ve made an application with DirectDraw and set the display mode to 640x480x16.Now when i lock the back buffer(linked to the primary surface) and check the value of the DDSURFACEDESC::lPitch it''s 768 * 2 = 1536.The height is normal but can someone tell me what''s wrong with the width?lPitch doesn''t lie and it''s exactly 768 words big.is this a bug or something?Many 10x!Bye   "Tonight we strike,there is thunder in the sky,together we''ll fight,some of us will die,but they''ll always remember that we''ve made a stand and many will die by hand!" - ManOwaR 
  DDraw documentation clearly states that the surface's pitch may not be equal to width * bitdepth / 8 as you might think.The driver may have additional space on each scanline for various reasons.To access pixels correctly, advance the lPitch amount of bytes between each scanline.kind rgds, Nik   [edited by - Nik02 on August 2, 2003 8:54:20 AM];  Thanks pal i think i understand.So the screen is 640x480x16 but the surface is 768x480x16 so each pixel of the screen will beequal to 0.83 pixels of the surface!10x again!   "Tonight we strike,there is thunder in the sky,together we''ll fight,some of us will die,but they''ll always remember that we''ve made a stand and many will die by hand!" - ManOwaR 