- MAINTENANCE: Fix inconsistent new lines.

svn path=/trunk/; revision=32707
This commit is contained in:
Aleksey Bragin 2008-03-17 10:59:18 +00:00
parent 1cdbc02cc8
commit fa200ee040

View file

@ -1,94 +1,94 @@
#include "precomp.h" #include "precomp.h"
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
BOOL BOOL
WINAPI WINAPI
AnimatePalette(HPALETTE hpal, AnimatePalette(HPALETTE hpal,
UINT iStartIndex, UINT iStartIndex,
UINT cEntries, UINT cEntries,
const PALETTEENTRY *ppe) const PALETTEENTRY *ppe)
{ {
return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalAnimate, TRUE); return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalAnimate, TRUE);
} }
HPALETTE HPALETTE
WINAPI WINAPI
CreatePalette(CONST LOGPALETTE * plpal) CreatePalette(CONST LOGPALETTE * plpal)
{ {
return NtGdiCreatePaletteInternal((LPLOGPALETTE)plpal, plpal->palNumEntries); return NtGdiCreatePaletteInternal((LPLOGPALETTE)plpal, plpal->palNumEntries);
} }
/* /*
* @implemented * @implemented
*/ */
UINT UINT
WINAPI WINAPI
GetPaletteEntries(HPALETTE hpal, GetPaletteEntries(HPALETTE hpal,
UINT iStartIndex, UINT iStartIndex,
UINT cEntries, UINT cEntries,
LPPALETTEENTRY ppe) LPPALETTEENTRY ppe)
{ {
return NtGdiDoPalette(hpal, iStartIndex, cEntries, ppe, GdiPalGetEntries, FALSE); return NtGdiDoPalette(hpal, iStartIndex, cEntries, ppe, GdiPalGetEntries, FALSE);
} }
UINT UINT
WINAPI WINAPI
SetPaletteEntries(HPALETTE hpal, SetPaletteEntries(HPALETTE hpal,
UINT iStartIndex, UINT iStartIndex,
UINT cEntries, UINT cEntries,
const PALETTEENTRY *ppe) const PALETTEENTRY *ppe)
{ {
return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalSetEntries, TRUE); return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalSetEntries, TRUE);
} }
UINT UINT
WINAPI WINAPI
GetSystemPaletteEntries(HDC hDC, GetSystemPaletteEntries(HDC hDC,
UINT iStartIndex, UINT iStartIndex,
UINT cEntries, UINT cEntries,
LPPALETTEENTRY ppe) LPPALETTEENTRY ppe)
{ {
return NtGdiDoPalette(hDC, iStartIndex, cEntries, ppe, GdiPalGetSystemEntries, FALSE); return NtGdiDoPalette(hDC, iStartIndex, cEntries, ppe, GdiPalGetSystemEntries, FALSE);
} }
UINT UINT
WINAPI WINAPI
GetDIBColorTable(HDC hDC, GetDIBColorTable(HDC hDC,
UINT iStartIndex, UINT iStartIndex,
UINT cEntries, UINT cEntries,
RGBQUAD *pColors) RGBQUAD *pColors)
{ {
return NtGdiDoPalette(hDC, iStartIndex, cEntries, pColors, GdiPalGetColorTable, FALSE); return NtGdiDoPalette(hDC, iStartIndex, cEntries, pColors, GdiPalGetColorTable, FALSE);
} }
/* /*
* @implemented * @implemented
*/ */
UINT UINT
WINAPI WINAPI
RealizePalette(HDC hDC) /* [in] Handle of device context */ RealizePalette(HDC hDC) /* [in] Handle of device context */
{ {
#if 0 #if 0
// Handle something other than a normal dc object. // Handle something other than a normal dc object.
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC) if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
{ {
if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC) if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC)
return MFDRV_(hDC); return MFDRV_(hDC);
else else
{ {
HPALETTE Pal = GetDCObject(hDC, GDI_OBJECT_TYPE_PALETTE); HPALETTE Pal = GetDCObject(hDC, GDI_OBJECT_TYPE_PALETTE);
PLDC pLDC = GdiGetLDC((HDC) Pal); PLDC pLDC = GdiGetLDC((HDC) Pal);
if ( !pLDC ) return FALSE; if ( !pLDC ) return FALSE;
if (pLDC->iType == LDC_EMFLDC) return EMFDRV_(Pal); if (pLDC->iType == LDC_EMFLDC) return EMFDRV_(Pal);
return FALSE; return FALSE;
} }
} }
#endif #endif
return UserRealizePalette(hDC); return UserRealizePalette(hDC);
} }
/* /*
* @implemented * @implemented
*/ */
@ -99,29 +99,29 @@ ResizePalette(
UINT nEntries UINT nEntries
) )
{ {
return NtGdiResizePalette(hPalette, nEntries); return NtGdiResizePalette(hPalette, nEntries);
}
/*
* @implemented
*/
UINT
WINAPI
SetDIBColorTable(HDC hDC,
UINT iStartIndex,
UINT cEntries,
const RGBQUAD *pColors)
{
UINT retValue=0;
if (cEntries)
{
retValue = NtGdiDoPalette(hDC, iStartIndex, cEntries, (RGBQUAD*)pColors, GdiPalSetColorTable, TRUE);
}
return retValue;
} }
/*
* @implemented
*/
UINT
WINAPI
SetDIBColorTable(HDC hDC,
UINT iStartIndex,
UINT cEntries,
const RGBQUAD *pColors)
{
UINT retValue=0;
if (cEntries)
{
retValue = NtGdiDoPalette(hDC, iStartIndex, cEntries, (RGBQUAD*)pColors, GdiPalSetColorTable, TRUE);
}
return retValue;
}
/* /*
* @implemented * @implemented
*/ */
@ -134,5 +134,5 @@ UpdateColors(
((PW32CLIENTINFO)NtCurrentTeb()->Win32ClientInfo)->cSpins = 0; ((PW32CLIENTINFO)NtCurrentTeb()->Win32ClientInfo)->cSpins = 0;
return NtGdiUpdateColors(hdc); return NtGdiUpdateColors(hdc);
} }
/* EOF */ /* EOF */