mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Changed to realize the palette in the background
This commit is contained in:
parent
bb68bab7e9
commit
3dbd80aad0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user