Did anyone succesfully used DirectDraw on Mini2440? All the functions (theoretically) provided by the device driver, like GetCaps or CreateSurface fail. DirectDrawCreate and SetCooperativeLevel end with success. Any suggestions?
WinCE & DirectDraw
No, I don't want to change the drivers. I just want to use basic functions of DirectDraw (create primary sureface and backbuffer, then paint on the backbuffer and show the graphics on screen).
i not clear about your point but, wince uses BltPrepare functions to draw on frame buffer ,if u want to implement a backbufffer either copy the frame buffer or override the functions called in BltPrepare may be this will be useful link http://support.microsoft.com/kb/247058/en-us
I've found the problem - the driver doesn't support backbuffer, so I have to use a buffer in system memory, sompose frame there and then blit to the primary surface. But there another problem comes - the driver doesn't support waiting for vertical blank and painting on screen is visible (and looks really bad). Does anyone know how to implement waiting for vertical blank in the driver? (HalWaitForVerticalBlank in haldd.cpp file)
Nap - the provided driver doesn't support waiting for VBLANK and I don't know how to implement this yet.