NtGdiGetNearestPaletteIndex (WIN32U.@)
UINT NtGdiGetNearestPaletteIndex ( HPALETTE hpalette, COLORREF color )
Gets palette index for color.
Should index be initialized to CLR_INVALID instead of 0?.
Success: Index of entry in logical palette
Failure: CLR_INVALID
Declared in "include/ntgdi.h". gitlab.winehq.org/wine/wine/blob/master/include/ntgdi.h
Implemented in "dlls/win32u/palette.c". gitlab.winehq.org/wine/wine/blob/master/dlls/win32u/palette.c
Debug channel "palette".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.