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
Родитель f1b3b93821
Коммит bde98f5bfb
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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
//-------------------------------------------------------------------------
//

Просмотреть файл

@ -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);