Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
416 B

#include "precomp.h"
#pragma hdrstop
#include "ssutil.h"
#include <shlobj.h>
HPALETTE ScreenSaverUtil::SelectPalette( HDC hDC, HPALETTE hPalette, BOOL bForceBackground )
{
HPALETTE hOldPalette = NULL;
if (hDC && hPalette)
{
hOldPalette = ::SelectPalette( hDC, hPalette, bForceBackground );
RealizePalette( hDC );
SetBrushOrgEx( hDC, 0,0, NULL );
}
return hOldPalette;
}