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 "ntgdi.h". https://source.winehq.org/source/include/ntgdi.h
Implemented in "dlls/win32u/palette.c". https://source.winehq.org/source/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 May 2024.