From 1067da29bdf1ff0158862dbc1891cbd14d6cfbac Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Wed, 19 Aug 1998 01:58:17 +0000 Subject: [PATCH] Changed to realize the palette in the background git-svn-id: svn://10.0.0.236/trunk@8170 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/windows/nsRenderingContextWin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/gfx/src/windows/nsRenderingContextWin.cpp b/mozilla/gfx/src/windows/nsRenderingContextWin.cpp index 43b3f33e0b0..7e2f8f8bbc1 100644 --- a/mozilla/gfx/src/windows/nsRenderingContextWin.cpp +++ b/mozilla/gfx/src/windows/nsRenderingContextWin.cpp @@ -443,7 +443,8 @@ nsresult nsRenderingContextWin :: SetupDC(HDC aOldDC, HDC aNewDC) nsPaletteInfo palInfo; mContext->GetPaletteInfo(palInfo); if (palInfo.isPaletteDevice && palInfo.palette) { - mOrigPalette = ::SelectPalette(aNewDC, (HPALETTE)palInfo.palette, FALSE); + // Select the palette in the background + mOrigPalette = ::SelectPalette(aNewDC, (HPALETTE)palInfo.palette, TRUE); // Don't do the realization for an off-screen memory DC if (nsnull == aOldDC) { ::RealizePalette(aNewDC);