Bug 495298 - DirectDraw render mode for windows mobile. Build bustage fix on systems that do not have ddraw support.

This commit is contained in:
Doug Turner 2009-06-23 16:35:40 -07:00
parent 595a35779a
commit bc645c0aed
2 changed files with 6 additions and 0 deletions

View File

@ -5963,9 +5963,11 @@ InitDDraw()
PRBool nsWindow::OnPaint(HDC aDC)
{
#ifdef CAIRO_HAS_DDRAW_SURFACE
if (gRenderMode == RENDER_IMAGE_DDRAW16) {
return OnPaintImageDDraw16();
}
#endif
PRBool result = PR_TRUE;
PAINTSTRUCT ps;
@ -6366,6 +6368,7 @@ DDRAW_FAILED:
return result;
}
#ifdef CAIRO_HAS_DDRAW_SURFACE
// Windows Mobile Special image/direct draw painting fun
PRBool nsWindow::OnPaintImageDDraw16()
{
@ -6594,6 +6597,7 @@ cleanup:
mPainting = PR_FALSE;
return result;
}
#endif
//-------------------------------------------------------------------------
//

View File

@ -339,7 +339,9 @@ protected:
virtual void OnDestroy();
virtual PRBool OnMove(PRInt32 aX, PRInt32 aY);
virtual PRBool OnPaint(HDC aDC = nsnull);
#ifdef CAIRO_HAS_DDRAW_SURFACE
PRBool OnPaintImageDDraw16();
#endif
virtual PRBool OnResize(nsIntRect &aWindowRect);