зеркало из https://github.com/mozilla/gecko-dev.git
Bug 495298 - DirectDraw render mode for windows mobile. Build bustage fix on systems that do not have ddraw support.
This commit is contained in:
Родитель
f1b3b93821
Коммит
bde98f5bfb
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче