mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
disable gradient captions on resolutions <= 8bpp
svn path=/trunk/; revision=7240
This commit is contained in:
parent
c2b73a09cb
commit
0705f303d0
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: misc.c,v 1.37 2003/12/24 01:26:10 weiden Exp $
|
/* $Id: misc.c,v 1.38 2003/12/25 21:14:24 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -24,6 +24,7 @@
|
||||||
#include <include/focus.h>
|
#include <include/focus.h>
|
||||||
#include <include/clipboard.h>
|
#include <include/clipboard.h>
|
||||||
#include <include/msgqueue.h>
|
#include <include/msgqueue.h>
|
||||||
|
#include <include/desktop.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
@ -506,7 +507,22 @@ NtUserSystemParametersInfo(
|
||||||
}
|
}
|
||||||
case SPI_GETGRADIENTCAPTIONS:
|
case SPI_GETGRADIENTCAPTIONS:
|
||||||
{
|
{
|
||||||
Status = MmCopyToCaller(pvParam, &GradientCaptions, sizeof(BOOL));
|
HDC hDC;
|
||||||
|
PDC dc;
|
||||||
|
PSURFOBJ SurfObj;
|
||||||
|
BOOL Ret = GradientCaptions;
|
||||||
|
|
||||||
|
hDC = IntGetScreenDC();
|
||||||
|
if(hDC)
|
||||||
|
{
|
||||||
|
dc = DC_LockDc(hDC);
|
||||||
|
SurfObj = (PSURFOBJ)AccessUserObject((ULONG) dc->Surface);
|
||||||
|
if(SurfObj)
|
||||||
|
Ret = (SurfObj->iBitmapFormat > BMF_8BPP);
|
||||||
|
DC_UnlockDc(hDC);
|
||||||
|
}
|
||||||
|
|
||||||
|
Status = MmCopyToCaller(pvParam, &Ret, sizeof(BOOL));
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
|
|
Loading…
Reference in a new issue