From c9486311237800acdbaa6377e6c9eaef2a6470fb Mon Sep 17 00:00:00 2001 From: "Jerry.Kirk%Nexwarecorp.com" Date: Sun, 16 Jan 2000 01:55:27 +0000 Subject: [PATCH] Work around a Photon bug when trying to Invert Text in the InvertRect function by forcing a flush after the draw. r=kedl git-svn-id: svn://10.0.0.236/trunk@57960 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/photon/nsRenderingContextPh.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/gfx/src/photon/nsRenderingContextPh.cpp b/mozilla/gfx/src/photon/nsRenderingContextPh.cpp index eefe09ea4c2..9b7cf1fd5be 100644 --- a/mozilla/gfx/src/photon/nsRenderingContextPh.cpp +++ b/mozilla/gfx/src/photon/nsRenderingContextPh.cpp @@ -1084,6 +1084,9 @@ nsRenderingContextPh :: InvertRect(nscoord aX, nscoord aY, nscoord aWidth, nscoo PgDrawIRect( x, y, x + w - 1, y + h - 1, Pg_DRAW_FILL ); PgSetDrawMode(Pg_DRAWMODE_OPAQUE); + /* To Fix a PHOTON BUG draw anything after changing back to OPAQUE */ + mSurface->Flush(); //PgDrawIRect( x, y, x, y, Pg_DRAW_FILL ); + PgFLUSH(); //kedl return NS_OK; }