i am doing:

d3dwindow.backbufferformat = D3DFMT_R5G6B5

and i can see the title bar flickering in the back and i am running full screen too. What do you do here ?