mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 498340. Fire NS_WILL_PAINT on Windows so flushes that change the window hierarchy happen before we call BeginPaint. r=jmathies
This commit is contained in:
parent
df12cdae81
commit
453275ec80
@ -322,6 +322,9 @@ EnsureSharedSurfaceSize(gfxIntSize size)
|
|||||||
|
|
||||||
PRBool nsWindow::OnPaint(HDC aDC)
|
PRBool nsWindow::OnPaint(HDC aDC)
|
||||||
{
|
{
|
||||||
|
nsPaintEvent willPaintEvent(PR_TRUE, NS_WILL_PAINT, this);
|
||||||
|
DispatchWindowEvent(&willPaintEvent);
|
||||||
|
|
||||||
#ifdef CAIRO_HAS_DDRAW_SURFACE
|
#ifdef CAIRO_HAS_DDRAW_SURFACE
|
||||||
if (IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_DDRAW16)) {
|
if (IsRenderMode(gfxWindowsPlatform::RENDER_IMAGE_DDRAW16)) {
|
||||||
return OnPaintImageDDraw16();
|
return OnPaintImageDDraw16();
|
||||||
|
Loading…
Reference in New Issue
Block a user