mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 495298 - DirectDraw render mode for windows mobile. Build bustage fix on systems that do not have ddraw support.
This commit is contained in:
parent
595a35779a
commit
bc645c0aed
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user