mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[WIN32K:NTUSER] Fix gradient caption bars with low color depth (#3338)
This fixes a problem when the window title bar is dithered down
to the 16- or 256-color palette. See also commit 0705f30
.
This commit is contained in:
parent
2e6c9ee1ca
commit
bc90cbbb88
|
@ -1583,7 +1583,17 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
||||||
return SpiSetUserPref(UPM_LISTBOXSMOOTHSCROLLING, pvParam, fl);
|
return SpiSetUserPref(UPM_LISTBOXSMOOTHSCROLLING, pvParam, fl);
|
||||||
|
|
||||||
case SPI_GETGRADIENTCAPTIONS:
|
case SPI_GETGRADIENTCAPTIONS:
|
||||||
|
{
|
||||||
|
if (NtGdiGetDeviceCaps(ScreenDeviceContext, BITSPIXEL) <= 8)
|
||||||
|
{
|
||||||
|
INT iValue = 0;
|
||||||
|
return SpiGetInt(pvParam, &iValue, fl);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return SpiGetUserPref(UPM_GRADIENTCAPTIONS, pvParam, fl);
|
return SpiGetUserPref(UPM_GRADIENTCAPTIONS, pvParam, fl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
case SPI_SETGRADIENTCAPTIONS:
|
case SPI_SETGRADIENTCAPTIONS:
|
||||||
return SpiSetUserPref(UPM_GRADIENTCAPTIONS, pvParam, fl);
|
return SpiSetUserPref(UPM_GRADIENTCAPTIONS, pvParam, fl);
|
||||||
|
|
Loading…
Reference in a new issue